diff options
author | Andrey A. Chernov <ache@FreeBSD.org> | 1997-09-24 05:28:05 +0000 |
---|---|---|
committer | Andrey A. Chernov <ache@FreeBSD.org> | 1997-09-24 05:28:05 +0000 |
commit | 0ba4030b3d0aa501dff418626c41af7b16afcfcf (patch) | |
tree | 025344282c2be699b7c42302dca80742e44b86b7 /games/phantasia/setup.c | |
parent | 3320fc47864d618611e10bb00fc29d9edc1c4bf1 (diff) | |
download | src-0ba4030b3d0aa501dff418626c41af7b16afcfcf.tar.gz src-0ba4030b3d0aa501dff418626c41af7b16afcfcf.zip |
Use srandomdev
Notes
Notes:
svn path=/head/; revision=29772
Diffstat (limited to 'games/phantasia/setup.c')
-rw-r--r-- | games/phantasia/setup.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/games/phantasia/setup.c b/games/phantasia/setup.c index 330afb01cd32..5caac3d1cef1 100644 --- a/games/phantasia/setup.c +++ b/games/phantasia/setup.c @@ -4,7 +4,6 @@ #include "include.h" #include <sys/types.h> #include <sys/stat.h> -#include <stdlib.h> #include <unistd.h> /**/ /************************************************************************ @@ -75,7 +74,7 @@ main(argc, argv) argc -= optind; argv += optind; - srandom((unsigned) time((long *) NULL)); /* prime random numbers */ + srandomdev(); umask(0117); /* only owner can read/write created files */ |