aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>1997-06-14 00:37:08 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>1997-06-14 00:37:08 +0000
commitb5cee521b35ec505bc93200b6af3d68e72d142e2 (patch)
treecc614ca51387f843892d04e1f2fd5ae2f62995f0
parent687ee69a2abe1b2c2c56c935dda90df37c17ed04 (diff)
downloadsrc-b5cee521b35ec505bc93200b6af3d68e72d142e2.tar.gz
src-b5cee521b35ec505bc93200b6af3d68e72d142e2.zip
Remove srandomdev fallback code
Notes
Notes: svn path=/head/; revision=26627
-rw-r--r--games/fortune/fortune/fortune.c3
-rw-r--r--games/random/random.c3
2 files changed, 2 insertions, 4 deletions
diff --git a/games/fortune/fortune/fortune.c b/games/fortune/fortune/fortune.c
index c58494141154..6d7ec8819030 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 4d17b5355862..076990b38ac5 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)