diff options
| author | Andrey A. Chernov <ache@FreeBSD.org> | 1997-09-24 04:48:24 +0000 |
|---|---|---|
| committer | Andrey A. Chernov <ache@FreeBSD.org> | 1997-09-24 04:48:24 +0000 |
| commit | 659ca5500f929839bfe4d6cfd4b91262e3e2f2f5 (patch) | |
| tree | f78b122d10b52a71fcdd441648bc773861c40140 /games/arithmetic | |
| parent | 1a0eac8a9bca08b2c92d58f1c909709825019407 (diff) | |
Notes
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 abebdfde8dd9..cfde8e9b69a5 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); |
