From 060041945cc25c95a8ec477800abc11dda21af11 Mon Sep 17 00:00:00 2001 From: protolambda Date: Tue, 18 Jun 2019 22:00:22 +0200 Subject: [PATCH] remove unnecessary cast --- 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 8e8156634..3016b52d8 100644 --- a/specs/core/0_beacon-chain.md +++ b/specs/core/0_beacon-chain.md @@ -843,7 +843,7 @@ def get_shuffled_index(index: ValidatorIndex, index_count: int, seed: Hash) -> V position = max(index, flip) source = hash( seed + int_to_bytes(current_round, length=1) + - int_to_bytes(ValidatorIndex(position // 256), length=4) + int_to_bytes(position // 256, length=4) ) byte = source[(position % 256) // 8] bit = (byte >> (position % 8)) % 2