diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2002-12-06 21:48:53 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2002-12-06 21:48:53 +0000 |
commit | 99f7d832e358aafae4a20e767b7ff31210c4887d (patch) | |
tree | 0d21178d992de6b4ae212bcdf5ad9cef92f9ee18 /games/battlestar | |
parent | 9e9e683c581c45c1caca670660c0bb9d1906a95d (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/battlestar')
-rw-r--r-- | games/battlestar/init.c | 6 |
1 files changed, 3 insertions, 3 deletions
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) { |