seed the random number generator at startup

This commit is contained in:
antirez 2011-02-22 00:01:48 +01:00
parent eece2d528c
commit 7377aacd84

View File

@ -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