summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 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)
OpenPOWER on IntegriCloud