mirror of
https://github.com/fluencelabs/redis
synced 2025-05-16 20:41:19 +00:00
seed the random number generator at startup
This commit is contained in:
parent
eece2d528c
commit
7377aacd84
@ -916,6 +916,7 @@ void initServer() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (server.vm_enabled) vmInit();
|
if (server.vm_enabled) vmInit();
|
||||||
|
srand(time(NULL)^getpid());
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Populates the Redis Command Table starting from the hard coded list
|
/* Populates the Redis Command Table starting from the hard coded list
|
||||||
|
Loading…
x
Reference in New Issue
Block a user