diff options
author | ache <ache@FreeBSD.org> | 1997-09-24 23:09:34 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1997-09-24 23:09:34 +0000 |
commit | d820189bdbaba51c10f58c86966ab442b163920a (patch) | |
tree | d746c6844e87f0753b7222585a858fbd49cf00bc /games/trek/setup.c | |
parent | f9b741be26e67350ab1e15d6015911fc92a5d03b (diff) | |
download | FreeBSD-src-d820189bdbaba51c10f58c86966ab442b163920a.zip FreeBSD-src-d820189bdbaba51c10f58c86966ab442b163920a.tar.gz |
Convert to random()
Diffstat (limited to 'games/trek/setup.c')
-rw-r--r-- | games/trek/setup.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/games/trek/setup.c b/games/trek/setup.c index 698fc99..8ea327c 100644 --- a/games/trek/setup.c +++ b/games/trek/setup.c @@ -35,6 +35,7 @@ static char sccsid[] = "@(#)setup.c 8.1 (Berkeley) 5/31/93"; #endif /* not lint */ +# include <stdlib.h> # include "trek.h" # include "getpar.h" @@ -104,7 +105,7 @@ setup() d = 0; for (i = 0; Game.passwd[i]; i++) d += Game.passwd[i] << i; - srand(d); + srandom(d); } Param.bases = Now.bases = ranf(6 - Game.skill) + 2; if (Game.skill == 6) |