From 2e6bf87bdf5b8dc34e6f19e947a67d40e2dcc71e Mon Sep 17 00:00:00 2001 From: Paul Hauner Date: Sat, 16 Feb 2019 17:27:47 +1100 Subject: [PATCH] Fix max list size for get_permutated_index --- specs/core/0_beacon-chain.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specs/core/0_beacon-chain.md b/specs/core/0_beacon-chain.md index 0932e8ef0..1ae282fa1 100644 --- a/specs/core/0_beacon-chain.md +++ b/specs/core/0_beacon-chain.md @@ -745,7 +745,7 @@ def get_permuted_index(index: int, list_size: int, seed: Bytes32) -> int: See the 'generalized domain' algorithm on page 3. """ assert index < list_size - assert list_size <= 2**24 + assert list_size <= 2**40 for round in range(SHUFFLE_ROUND_COUNT): pivot = bytes_to_int(hash(seed + int_to_bytes1(round))[0:8]) % list_size