Permalink
Browse files

seed the random number generator at startup

  • Loading branch information...
1 parent eece2d5 commit 7377aacd84d680123571b50fb8a8decabdc22420 @antirez committed Feb 21, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/redis.c
View
@@ -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

0 comments on commit 7377aac

Please sign in to comment.