diff --git a/specs/core/1_shard-data-chains.md b/specs/core/1_shard-data-chains.md index a6e9c997f..f24c6f9c3 100644 --- a/specs/core/1_shard-data-chains.md +++ b/specs/core/1_shard-data-chains.md @@ -270,8 +270,8 @@ def get_shard_block_proposer_index(state: BeaconState, return None MAX_RANDOM_BYTE = 2**8 - 1 - seed = get_seed(state, current_epoch, DOMAIN_SHARD_PROPOSER) - seed = hash(seed + int_to_bytes(shard, length=8) + int_to_bytes(slot, length=8)) + epoch_seed = get_seed(state, current_epoch, DOMAIN_SHARD_PROPOSER) + seed = hash(epoch_seed + int_to_bytes(shard, length=8) + int_to_bytes(slot, length=8)) i = 0 while True: candidate_index = active_indices[(slot + i) % len(active_indices)]