From b4abbaf755d723d33b0e81880fb035ab88f3544f Mon Sep 17 00:00:00 2001 From: antirez Date: Fri, 30 Nov 2012 15:41:09 +0100 Subject: [PATCH] redis-benchmark: seed the PRNG with time() at startup. --- src/redis-benchmark.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/redis-benchmark.c b/src/redis-benchmark.c index 8d72573d..7ab700d3 100644 --- a/src/redis-benchmark.c +++ b/src/redis-benchmark.c @@ -35,6 +35,7 @@ #include #include #include +#include #include #include #include @@ -510,6 +511,7 @@ int main(int argc, const char **argv) { client c; + srandom(time(NULL)); signal(SIGHUP, SIG_IGN); signal(SIGPIPE, SIG_IGN); -- 2.47.2