diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2002-12-06 21:48:53 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2002-12-06 21:48:53 +0000 |
commit | 99f7d832e358aafae4a20e767b7ff31210c4887d (patch) | |
tree | 0d21178d992de6b4ae212bcdf5ad9cef92f9ee18 /games/quiz/quiz.c | |
parent | 9e9e683c581c45c1caca670660c0bb9d1906a95d (diff) |
Replace things like srandom(time(NULL)) with srandomdev(3). random(3)
good enough for games but we should at least use a decent seed.
pjanzen@ OK
Diffstat (limited to 'games/quiz/quiz.c')
-rw-r--r-- | games/quiz/quiz.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/games/quiz/quiz.c b/games/quiz/quiz.c index 5815b5cae8f..a403a468850 100644 --- a/games/quiz/quiz.c +++ b/games/quiz/quiz.c @@ -1,4 +1,4 @@ -/* $OpenBSD: quiz.c,v 1.11 2002/05/31 03:40:01 pjanzen Exp $ */ +/* $OpenBSD: quiz.c,v 1.12 2002/12/06 21:48:51 millert Exp $ */ /* $NetBSD: quiz.c,v 1.9 1995/04/22 10:16:58 cgd Exp $ */ /*- @@ -48,7 +48,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)quiz.c 8.3 (Berkeley) 5/4/95"; #else -static char rcsid[] = "$OpenBSD: quiz.c,v 1.11 2002/05/31 03:40:01 pjanzen Exp $"; +static char rcsid[] = "$OpenBSD: quiz.c,v 1.12 2002/12/06 21:48:51 millert Exp $"; #endif #endif /* not lint */ @@ -233,7 +233,7 @@ quiz() char *answer, *t, question[LINE_SZ]; const char *s; - srandom(time(NULL)); + srandomdev(); guesses = rights = wrongs = 0; for (;;) { if (qsize == 0) |