summaryrefslogtreecommitdiffstats
path: root/games/fortune
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1997-06-14 00:37:08 +0000
committerache <ache@FreeBSD.org>1997-06-14 00:37:08 +0000
commitaee8cc2f529af45ad3fd8c87d76b9d1474eb4253 (patch)
treea3e05728fae7026fd887ea01b4f1aba81a1df5b4 /games/fortune
parent66946f930588a5258a235e5cfaac5d2085445620 (diff)
downloadFreeBSD-src-aee8cc2f529af45ad3fd8c87d76b9d1474eb4253.zip
FreeBSD-src-aee8cc2f529af45ad3fd8c87d76b9d1474eb4253.tar.gz
Remove srandomdev fallback code
Diffstat (limited to 'games/fortune')
-rw-r--r--games/fortune/fortune/fortune.c3
1 files changed, 1 insertions, 2 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) ||
OpenPOWER on IntegriCloud