Remove srandomdev fallback code

This commit is contained in:
Andrey A. Chernov 1997-06-14 00:37:08 +00:00
parent 687ee69a2a
commit b5cee521b3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=26627
2 changed files with 2 additions and 4 deletions

View File

@ -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) ||

View File

@ -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)