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/monop/monop.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'games/monop') diff --git a/games/monop/monop.c b/games/monop/monop.c index d26c7e06e9d..2d0a6b0c8ff 100644 --- a/games/monop/monop.c +++ b/games/monop/monop.c @@ -1,4 +1,4 @@ -/* $OpenBSD: monop.c,v 1.5 2002/07/28 08:44:14 pjanzen Exp $ */ +/* $OpenBSD: monop.c,v 1.6 2002/12/06 21:48:51 millert Exp $ */ /* $NetBSD: monop.c,v 1.3 1995/03/23 08:34:52 cgd Exp $ */ /* @@ -44,7 +44,7 @@ static const char copyright[] = #if 0 static char sccsid[] = "@(#)monop.c 8.1 (Berkeley) 5/31/93"; #else -static const char rcsid[] = "$OpenBSD: monop.c,v 1.5 2002/07/28 08:44:14 pjanzen Exp $"; +static const char rcsid[] = "$OpenBSD: monop.c,v 1.6 2002/12/06 21:48:51 millert Exp $"; #endif #endif /* not lint */ @@ -65,7 +65,7 @@ main(ac, av) int ac; char *av[]; { - srandom(getpid()); + srandomdev(); num_luck = sizeof lucky_mes / sizeof (char *); init_decks(); init_monops(); -- cgit v1.2.3