diff options
author | ache <ache@FreeBSD.org> | 1997-06-14 00:37:08 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1997-06-14 00:37:08 +0000 |
commit | aee8cc2f529af45ad3fd8c87d76b9d1474eb4253 (patch) | |
tree | a3e05728fae7026fd887ea01b4f1aba81a1df5b4 /games | |
parent | 66946f930588a5258a235e5cfaac5d2085445620 (diff) | |
download | FreeBSD-src-aee8cc2f529af45ad3fd8c87d76b9d1474eb4253.zip FreeBSD-src-aee8cc2f529af45ad3fd8c87d76b9d1474eb4253.tar.gz |
Remove srandomdev fallback code
Diffstat (limited to 'games')
-rw-r--r-- | games/fortune/fortune/fortune.c | 3 | ||||
-rw-r--r-- | games/random/random.c | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/games/fortune/fortune/fortune.c b/games/fortune/fortune/fortune.c index c584941..6d7ec88 100644 --- a/games/fortune/fortune/fortune.c +++ b/games/fortune/fortune/fortune.c @@ -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) || diff --git a/games/random/random.c b/games/random/random.c index 4d17b53..076990b 100644 --- a/games/random/random.c +++ b/games/random/random.c @@ -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) |