summaryrefslogtreecommitdiff
path: root/games/monop
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2002-12-06 21:48:53 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2002-12-06 21:48:53 +0000
commit99f7d832e358aafae4a20e767b7ff31210c4887d (patch)
tree0d21178d992de6b4ae212bcdf5ad9cef92f9ee18 /games/monop
parent9e9e683c581c45c1caca670660c0bb9d1906a95d (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/monop')
-rw-r--r--games/monop/monop.c6
1 files changed, 3 insertions, 3 deletions
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();