fix seed xor in get_shuffling using bytes32

This commit is contained in:
Danny Ryan 2019-01-08 09:51:12 -07:00 committed by GitHub
parent fff0989b8c
commit 78ee210d56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -880,7 +880,7 @@ def get_shuffling(seed: Hash32,
)
# Shuffle
seed = xor(randao_mix, hash(slot))
seed = xor(randao_mix, bytes32(slot))
shuffled_active_validator_indices = shuffle(active_validator_indices, seed)
# Split the shuffled list into epoch_length pieces