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/arithmetic | |
parent | 0f3d4fc289f5017634ed2597317e7e15ae3d9f6d (diff) | |
download | FreeBSD-src-297678a001aafa7f8ae3bc00b18772b660f9c510.zip FreeBSD-src-297678a001aafa7f8ae3bc00b18772b660f9c510.tar.gz |
Use srandomdev
Diffstat (limited to 'games/arithmetic')
-rw-r--r-- | games/arithmetic/arithmetic.c | 3 |
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); |