diff options
author | ache <ache@FreeBSD.org> | 1997-09-24 04:48:24 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1997-09-24 04:48:24 +0000 |
commit | 297678a001aafa7f8ae3bc00b18772b660f9c510 (patch) | |
tree | cee4aebf5a060021c393ffed583d7fc47fca9d45 /games/wump | |
parent | 0f3d4fc289f5017634ed2597317e7e15ae3d9f6d (diff) | |
download | FreeBSD-src-297678a001aafa7f8ae3bc00b18772b660f9c510.zip FreeBSD-src-297678a001aafa7f8ae3bc00b18772b660f9c510.tar.gz |
Use srandomdev
Diffstat (limited to 'games/wump')
-rw-r--r-- | games/wump/wump.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/games/wump/wump.c b/games/wump/wump.c index dec7dfb..4329e7c 100644 --- a/games/wump/wump.c +++ b/games/wump/wump.c @@ -54,6 +54,7 @@ static char sccsid[] = "@(#)wump.c 8.1 (Berkeley) 5/31/93"; #include <sys/types.h> #include <sys/file.h> #include <stdio.h> +#include <stdlib.h> #include "pathnames.h" /* some defines to spec out what our wumpus cave should look like */ @@ -482,7 +483,6 @@ cave_init() { register int i, j, k, link; int delta, int_compare(); - time_t time(); /* * This does most of the interesting work in this program actually! @@ -493,7 +493,7 @@ cave_init() * than three links, regardless of the quality of the random number * generator that we're using. */ - srandom((int)time((time_t *)0)); + srandomdev(); /* initialize the cave first off. */ for (i = 1; i <= room_num; ++i) |