diff --git a/src/redis-cli.c b/src/redis-cli.c index 6aacecc7..7010e5e5 100644 --- a/src/redis-cli.c +++ b/src/redis-cli.c @@ -2402,7 +2402,7 @@ long long powerLawRand(long long min, long long max, double alpha) { /* Generates a key name among a set of lru_test_sample_size keys, using * an 80-20 distribution. */ void LRUTestGenKey(char *buf, size_t buflen) { - snprintf(buf, buflen, "lru:%lld\n", + snprintf(buf, buflen, "lru:%lld", powerLawRand(1, config.lru_test_sample_size, 6.2)); }