From 5e84d7e3ffd411e31f284989393085b20941a1b4 Mon Sep 17 00:00:00 2001 From: Danny Ryan Date: Fri, 8 Feb 2019 01:08:15 -0600 Subject: [PATCH] Update specs/core/1_shard-data-chains.md Co-Authored-By: vbuterin --- specs/core/1_shard-data-chains.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specs/core/1_shard-data-chains.md b/specs/core/1_shard-data-chains.md index cb262a1ee..2984b3fb7 100644 --- a/specs/core/1_shard-data-chains.md +++ b/specs/core/1_shard-data-chains.md @@ -95,7 +95,7 @@ def get_proposal_committee(seed: Bytes32, def get_switchover_epoch(index): return ( - int.from_bytes(hash(generate_seed(state, earlier_committee_start) + bytes3(index)), 'little') % + bytes_to_int(hash(generate_seed(state, earlier_committee_start) + bytes3(index))[0:8]) % PROPOSAL_RESHUFFLE_PERIOD )