diff --git a/games/fortune/fortune/fortune.c b/games/fortune/fortune/fortune.c index a7a8f452e612..60e6cbc7f127 100644 --- a/games/fortune/fortune/fortune.c +++ b/games/fortune/fortune/fortune.c @@ -174,6 +174,7 @@ char *av[]; #ifdef OK_TO_WRITE_DISK int fd; #endif /* OK_TO_WRITE_DISK */ + struct timeval now; (void) setlocale(LC_ALL, ""); @@ -183,7 +184,8 @@ char *av[]; exit(find_matches() != 0); init_prob(); - srandomdev(); + gettimeofday(&now, NULL); + srandom(now.tv_usec); do { get_fort(); } while ((Short_only && fortlen() > SLEN) ||