diff --git a/tools/benchmark_client/benchmark_client.cc b/tools/benchmark_client/benchmark_client.cc index 18e636e033..940e851224 100644 --- a/tools/benchmark_client/benchmark_client.cc +++ b/tools/benchmark_client/benchmark_client.cc @@ -744,7 +744,7 @@ Status RunLRangeCommand(redisContext* c, ThreadArg* arg) { void* ThreadMain(void* arg) { ThreadArg* ta = reinterpret_cast(arg); - last_seed = (int)pthread_self(); + last_seed = ta->idx; if (FLAGS_command == "generate") { RunGenerateCommand(ta->idx);