Update 0_beacon-chain.md (#547)

This commit is contained in:
Hsiao-Wei Wang 2019-02-01 23:45:09 +08:00 committed by Justin
parent 4cdb66728a
commit 0b8ccf1e64
1 changed files with 1 additions and 2 deletions

View File

@ -940,7 +940,6 @@ def generate_seed(state: BeaconState,
"""
Generate a seed for the given ``epoch``.
"""
return hash(
get_randao_mix(state, epoch - SEED_LOOKAHEAD) +
get_active_index_root(state, epoch)
@ -1000,7 +999,7 @@ def get_attestation_participants(state: BeaconState,
### `is_power_of_two`
```
```python
def is_power_of_two(value: int) -> bool:
"""
Check if ``value`` is a power of two integer.