fix seed xor in get_shuffling using bytes32
This commit is contained in:
parent
fff0989b8c
commit
78ee210d56
|
@ -880,7 +880,7 @@ def get_shuffling(seed: Hash32,
|
||||||
)
|
)
|
||||||
|
|
||||||
# Shuffle
|
# Shuffle
|
||||||
seed = xor(randao_mix, hash(slot))
|
seed = xor(randao_mix, bytes32(slot))
|
||||||
shuffled_active_validator_indices = shuffle(active_validator_indices, seed)
|
shuffled_active_validator_indices = shuffle(active_validator_indices, seed)
|
||||||
|
|
||||||
# Split the shuffled list into epoch_length pieces
|
# Split the shuffled list into epoch_length pieces
|
||||||
|
|
Loading…
Reference in New Issue