diff options
author | dholland <dholland@NetBSD.org> | 2014-03-22 23:33:33 +0000 |
---|---|---|
committer | dholland <dholland@NetBSD.org> | 2014-03-22 23:33:33 +0000 |
commit | bd35ad093888ab3ff7c529269fe39e0017174a50 (patch) | |
tree | c23498f08d92bfa07dbfdd5eaf2d735fba18aae7 /battlestar/init.c | |
parent | 82159d673f616b12554c28d5ac54f515fec21e91 (diff) | |
download | bsdgames-darwin-bd35ad093888ab3ff7c529269fe39e0017174a50.tar.gz bsdgames-darwin-bd35ad093888ab3ff7c529269fe39e0017174a50.tar.zst bsdgames-darwin-bd35ad093888ab3ff7c529269fe39e0017174a50.zip |
Use random(), not rand().
Diffstat (limited to 'battlestar/init.c')
-rw-r--r-- | battlestar/init.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/battlestar/init.c b/battlestar/init.c index 93cbb2ff..1dd0e04e 100644 --- a/battlestar/init.c +++ b/battlestar/init.c @@ -1,4 +1,4 @@ -/* $NetBSD: init.c,v 1.15 2005/07/01 06:04:54 jmc Exp $ */ +/* $NetBSD: init.c,v 1.16 2014/03/22 23:33:33 dholland Exp $ */ /* * Copyright (c) 1983, 1993 @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)init.c 8.4 (Berkeley) 4/30/95"; #else -__RCSID("$NetBSD: init.c,v 1.15 2005/07/01 06:04:54 jmc Exp $"); +__RCSID("$NetBSD: init.c,v 1.16 2014/03/22 23:33:33 dholland Exp $"); #endif #endif /* not lint */ @@ -54,7 +54,7 @@ initialize(const char *filename) puts("First Adventure game written by His Lordship, the honorable"); puts("Admiral D.W. Riggle\n"); location = dayfile; - srand(getpid()); + srandom(time(NULL)); username = getutmp(); wordinit(); if (filename == NULL) { |