summaryrefslogtreecommitdiffstats
path: root/games/arithmetic
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1997-09-24 04:48:24 +0000
committerache <ache@FreeBSD.org>1997-09-24 04:48:24 +0000
commit297678a001aafa7f8ae3bc00b18772b660f9c510 (patch)
treecee4aebf5a060021c393ffed583d7fc47fca9d45 /games/arithmetic
parent0f3d4fc289f5017634ed2597317e7e15ae3d9f6d (diff)
downloadFreeBSD-src-297678a001aafa7f8ae3bc00b18772b660f9c510.zip
FreeBSD-src-297678a001aafa7f8ae3bc00b18772b660f9c510.tar.gz
Use srandomdev
Diffstat (limited to 'games/arithmetic')
-rw-r--r--games/arithmetic/arithmetic.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/games/arithmetic/arithmetic.c b/games/arithmetic/arithmetic.c
index abebdfd..cfde8e9 100644
--- a/games/arithmetic/arithmetic.c
+++ b/games/arithmetic/arithmetic.c
@@ -77,6 +77,7 @@ static char sccsid[] = "@(#)arithmetic.c 8.1 (Berkeley) 5/31/93";
#include <ctype.h>
#include <stdio.h>
#include <string.h>
+#include <stdlib.h>
char keylist[] = "+-x/";
char defaultkeys[] = "+-";
@@ -133,7 +134,7 @@ main(argc, argv)
usage();
/* Seed the random-number generator. */
- srandom((int)time((time_t *)NULL));
+ srandomdev();
(void)signal(SIGINT, intr);
OpenPOWER on IntegriCloud