summaryrefslogtreecommitdiff
path: root/trafgen.c
diff options
context:
space:
mode:
Diffstat (limited to 'trafgen.c')
-rw-r--r--trafgen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/trafgen.c b/trafgen.c
index a370333..2e32f09 100644
--- a/trafgen.c
+++ b/trafgen.c
@@ -865,7 +865,7 @@ static unsigned int generate_srand_seed(void)
fd = open("/dev/urandom", O_RDONLY);
if (fd < 0)
- return time(0);
+ return time(NULL);
read_or_die(fd, &_seed, sizeof(_seed));