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/hangman/setup.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'games/hangman') 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); -- cgit v1.2.3