summaryrefslogtreecommitdiffstats
path: root/games/phantasia/setup.c
diff options
context:
space:
mode:
Diffstat (limited to 'games/phantasia/setup.c')
-rw-r--r--games/phantasia/setup.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/games/phantasia/setup.c b/games/phantasia/setup.c
index 330afb0..5caac3d 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 */
OpenPOWER on IntegriCloud