Remove srandomdev fallback code
This commit is contained in:
parent
687ee69a2a
commit
b5cee521b3
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=26627
@ -199,8 +199,7 @@ char *av[];
|
||||
#endif
|
||||
|
||||
init_prob();
|
||||
if (srandomdev() < 0)
|
||||
srandom((unsigned long)(time((time_t *) NULL) ^ getpid()));
|
||||
srandomdev();
|
||||
do {
|
||||
get_fort();
|
||||
} while ((Short_only && fortlen() > SLEN) ||
|
||||
|
@ -103,8 +103,7 @@ main(argc, argv)
|
||||
/* NOTREACHED */
|
||||
}
|
||||
|
||||
if (srandomdev() < 0)
|
||||
srandom(time(NULL) ^ getpid());
|
||||
srandomdev();
|
||||
|
||||
/* Compute a random exit status between 0 and denom - 1. */
|
||||
if (random_exit)
|
||||
|
Loading…
Reference in New Issue
Block a user