summaryrefslogtreecommitdiff
path: root/games/hangman
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/hangman
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/hangman')
-rw-r--r--games/hangman/setup.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/games/hangman/setup.c b/games/hangman/setup.c
index e16596f31a4..464d70b2617 100644
--- a/games/hangman/setup.c
+++ b/games/hangman/setup.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: setup.c,v 1.5 2002/05/31 05:11:37 pjanzen Exp $ */
+/* $OpenBSD: setup.c,v 1.6 2002/12/06 21:48:51 millert Exp $ */
/* $NetBSD: setup.c,v 1.3 1995/03/23 08:32:59 cgd Exp $ */
/*-
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)setup.c 8.1 (Berkeley) 5/31/93";
#else
-static char rcsid[] = "$OpenBSD: setup.c,v 1.5 2002/05/31 05:11:37 pjanzen Exp $";
+static char rcsid[] = "$OpenBSD: setup.c,v 1.6 2002/12/06 21:48:51 millert Exp $";
#endif
#endif /* not lint */
@@ -70,7 +70,7 @@ setup()
addstr(*sp);
}
- srandom(time(NULL) + getpid());
+ srandomdev();
if ((Dict = fopen(Dict_name, "r")) == NULL) {
endwin();
err(1, "fopen %s", Dict_name);