Skip to content

Commit

Permalink
Merge pull request #1221 from ethereum/ralexstokes-patch-3
Browse files Browse the repository at this point in the history
Clarify `get_randao_mix` accessor
  • Loading branch information
djrtwo authored Jun 29, 2019
2 parents 34ad123 + 2a2bd72 commit aec9719
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion specs/core/0_beacon-chain.md
Original file line number Diff line number Diff line change
Expand Up @@ -786,7 +786,7 @@ def generate_seed(state: BeaconState,
Generate a seed for the given ``epoch``.
"""
return hash(
get_randao_mix(state, Epoch(epoch + EPOCHS_PER_HISTORICAL_VECTOR - MIN_SEED_LOOKAHEAD)) +
get_randao_mix(state, Epoch(epoch + EPOCHS_PER_HISTORICAL_VECTOR - MIN_SEED_LOOKAHEAD)) + # Avoid underflow
hash_tree_root(List[ValidatorIndex, VALIDATOR_REGISTRY_LIMIT](get_active_validator_indices(state, epoch))) +
int_to_bytes(epoch, length=32)
)
Expand Down

0 comments on commit aec9719

Please sign in to comment.