From 8d82ee8ce7ea1d3d3bb166683cd497e115cc852b Mon Sep 17 00:00:00 2001 From: Danny Ryan Date: Fri, 1 Feb 2019 21:02:09 -0800 Subject: [PATCH] do not mix in epoch to seed in get_shuffling. add epoch to generate_seed --- specs/core/0_beacon-chain.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specs/core/0_beacon-chain.md b/specs/core/0_beacon-chain.md index 8a83149ffe..1ee3596e81 100644 --- a/specs/core/0_beacon-chain.md +++ b/specs/core/0_beacon-chain.md @@ -778,7 +778,6 @@ def get_shuffling(seed: Bytes32, committees_per_epoch = get_epoch_committee_count(len(active_validator_indices)) # Shuffle - seed = xor(seed, int_to_bytes32(epoch)) shuffled_active_validator_indices = shuffle(active_validator_indices, seed) # Split the shuffled list into committees_per_epoch pieces @@ -942,7 +941,8 @@ def generate_seed(state: BeaconState, """ return hash( get_randao_mix(state, epoch - SEED_LOOKAHEAD) + - get_active_index_root(state, epoch) + get_active_index_root(state, epoch) + + int_to_bytes32(epoch) ) ```