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/battlestar/init.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'games/battlestar') diff --git a/games/battlestar/init.c b/games/battlestar/init.c index c61a05451ba..99832250183 100644 --- a/games/battlestar/init.c +++ b/games/battlestar/init.c @@ -1,4 +1,4 @@ -/* $OpenBSD: init.c,v 1.8 2002/02/16 21:27:09 millert Exp $ */ +/* $OpenBSD: init.c,v 1.9 2002/12/06 21:48:51 millert Exp $ */ /* $NetBSD: init.c,v 1.4 1995/03/21 15:07:35 cgd Exp $ */ /* @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)init.c 8.4 (Berkeley) 4/30/95"; #else -static char rcsid[] = "$OpenBSD: init.c,v 1.8 2002/02/16 21:27:09 millert Exp $"; +static char rcsid[] = "$OpenBSD: init.c,v 1.9 2002/12/06 21:48:51 millert Exp $"; #endif #endif /* not lint */ @@ -59,7 +59,7 @@ initialize(filename) puts("First Adventure game written by His Lordship, the honorable"); puts("Admiral D.W. Riggle\n"); location = dayfile; - srandom(getpid()); + srandomdev(); username = getutmp(); wordinit(); if (filename == NULL) { -- cgit v1.2.3