From 0b8ccf1e64f97326f360de7b48b1ae871b2f992c Mon Sep 17 00:00:00 2001 From: Hsiao-Wei Wang Date: Fri, 1 Feb 2019 23:45:09 +0800 Subject: [PATCH] Update 0_beacon-chain.md (#547) --- specs/core/0_beacon-chain.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/specs/core/0_beacon-chain.md b/specs/core/0_beacon-chain.md index d93cb21d7..13f480171 100644 --- a/specs/core/0_beacon-chain.md +++ b/specs/core/0_beacon-chain.md @@ -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.