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/fish | |
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/fish')
-rw-r--r-- | games/fish/fish.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/games/fish/fish.c b/games/fish/fish.c index da2e80bef27..b3aef1a3fff 100644 --- a/games/fish/fish.c +++ b/games/fish/fish.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fish.c,v 1.11 2002/05/31 03:40:00 pjanzen Exp $ */ +/* $OpenBSD: fish.c,v 1.12 2002/12/06 21:48:51 millert Exp $ */ /* $NetBSD: fish.c,v 1.3 1995/03/23 08:28:18 cgd Exp $ */ /*- @@ -47,7 +47,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)fish.c 8.1 (Berkeley) 5/31/93"; #else -static char rcsid[] = "$OpenBSD: fish.c,v 1.11 2002/05/31 03:40:00 pjanzen Exp $"; +static char rcsid[] = "$OpenBSD: fish.c,v 1.12 2002/12/06 21:48:51 millert Exp $"; #endif #endif /* not lint */ @@ -118,7 +118,7 @@ main(argc, argv) usage(); } - srandom(time((time_t *)NULL)); + srandomdev(); instructions(); init(); |