summaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
Diffstat (limited to 'games')
-rw-r--r--games/fortune/fortune/fortune.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/games/fortune/fortune/fortune.c b/games/fortune/fortune/fortune.c
index 60e6cbc..a7a8f45 100644
--- a/games/fortune/fortune/fortune.c
+++ b/games/fortune/fortune/fortune.c
@@ -174,7 +174,6 @@ char *av[];
#ifdef OK_TO_WRITE_DISK
int fd;
#endif /* OK_TO_WRITE_DISK */
- struct timeval now;
(void) setlocale(LC_ALL, "");
@@ -184,8 +183,7 @@ char *av[];
exit(find_matches() != 0);
init_prob();
- gettimeofday(&now, NULL);
- srandom(now.tv_usec);
+ srandomdev();
do {
get_fort();
} while ((Short_only && fortlen() > SLEN) ||
OpenPOWER on IntegriCloud