1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-08 13:28:05 +00:00

Use srandomdev

This commit is contained in:
Andrey A. Chernov 1997-09-24 04:53:49 +00:00
parent 659ca5500f
commit 5842a4acb8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=29769
3 changed files with 2 additions and 6 deletions

View File

@ -94,11 +94,7 @@ reg char *av[]; {
leaveok(Score, TRUE);
leaveok(Miles, TRUE);
clearok(curscr, TRUE);
# ifndef PROF
srandom(getpid());
# else
srandom(0);
# endif
srandomdev();
crmode();
noecho();
signal(SIGINT, rub);

View File

@ -37,6 +37,7 @@
# include <ctype.h>
# include <curses.h>
# include <string.h>
# include <stdlib.h>
/*
* @(#)mille.h 1.1 (Berkeley) 4/1/82

View File

@ -48,7 +48,6 @@ roll(ndie, nsides)
reg int ndie, nsides; {
reg int tot;
extern unsigned int random();
tot = 0;
while (ndie--)