Limit sampling size in dictGetFairRandomKey().
This way the implementation is almost as fast as the original one, but the distribution is not too bad.
Please register or sign in to comment
This way the implementation is almost as fast as the original one, but the distribution is not too bad.