mirror of
https://github.com/redis/redis.git
synced 2026-04-21 03:01:35 -04:00
seed the random number generator at startup
This commit is contained in:
@@ -916,6 +916,7 @@ void initServer() {
|
||||
}
|
||||
|
||||
if (server.vm_enabled) vmInit();
|
||||
srand(time(NULL)^getpid());
|
||||
}
|
||||
|
||||
/* Populates the Redis Command Table starting from the hard coded list
|
||||
|
||||
Reference in New Issue
Block a user