Commit 35ffbead authored by antirez's avatar antirez
Browse files

Use dictGetFairRandomKey() for RANDOMKEY as well.

parent 25b392f9
......@@ -241,7 +241,7 @@ robj *dbRandomKey(redisDb *db) {
sds key;
robj *keyobj;
de = dictGetRandomKey(db->dict);
de = dictGetFairRandomKey(db->dict);
if (de == NULL) return NULL;
key = dictGetKey(de);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment