sundb 77a3aae99e Fix random probability check in ziplistRandomPairsUnique (#8467)
When (remaining == (total_size - index)), element will definitely be random to.
But when rand() == RAND_MAX, the element will miss, this will trigger assert
in serverAssert(ziplistRandomPairsUnique(zsetobj->ptr, count, keys, vals) == count).
2021-02-08 12:41:16 +02:00
..
2020-11-09 21:48:56 -08:00
2021-02-08 12:09:39 +02:00
2020-04-24 17:00:03 -07:00
2020-04-24 17:11:21 -07:00
2021-01-04 17:02:57 +02:00
2018-07-03 18:19:46 +02:00
2021-01-26 09:45:53 +08:00
2019-02-24 21:38:15 +01:00
2021-01-31 12:16:58 +02:00
2021-01-04 17:02:57 +02:00
2020-10-27 15:04:18 +02:00
2020-05-05 23:35:08 -04:00
2020-09-29 15:52:13 +03:00
2019-11-19 17:23:47 +08:00
2021-02-08 12:09:39 +02:00
2021-01-04 17:02:57 +02:00
2021-01-04 17:02:57 +02:00
2019-10-02 11:30:20 +02:00
2020-07-24 14:40:19 +08:00
2021-01-28 18:17:39 +02:00
2021-01-28 18:17:39 +02:00
2021-01-04 17:02:57 +02:00
2021-01-28 16:19:43 +02:00
2020-07-21 08:13:05 +03:00
2020-12-13 11:11:29 +02:00
2021-01-18 11:37:05 +02:00
2021-01-18 11:37:05 +02:00