We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5d592d commit 27b9f7dCopy full SHA for 27b9f7d
eth/beacon/utils/random.py
@@ -36,9 +36,9 @@ def shuffle(values: Sequence[Any],
36
"""
37
values_count = len(values)
38
39
- if values_count > RAND_MAX:
+ if values_count >= RAND_MAX:
40
raise ValueError(
41
- "values_count (%s) should less than or equal to RAND_MAX (%s)." %
+ "values_count (%s) should less than RAND_MAX (%s)." %
42
(values_count, RAND_MAX)
43
)
44
0 commit comments