mirror of
https://github.com/fluencelabs/redis
synced 2025-07-01 18:01:33 +00:00
seed the random number generator at startup
This commit is contained in:
@ -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
|
||||||
|
Reference in New Issue
Block a user