From 99f7d832e358aafae4a20e767b7ff31210c4887d Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Fri, 6 Dec 2002 21:48:53 +0000 Subject: 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 --- games/quiz/quiz.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'games/quiz/quiz.c') 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) -- cgit v1.2.3