mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-01-29 20:05:21 +00:00
Update specs/core/0_beacon-chain.md
Co-Authored-By: vbuterin <v@buterin.com>
This commit is contained in:
parent
c58410e6ce
commit
37b41a2ce6
@ -704,7 +704,6 @@ def shuffle(values: List[Any], seed: Bytes32) -> List[Any]:
|
||||
for i in range((n + 255) // 256)
|
||||
])
|
||||
pivot = int.from_bytes(hash(seed + round.to_bytes(1, 'big')), 'big') % n
|
||||
|
||||
def permute(pos):
|
||||
flip = (pivot - pos) % n
|
||||
maxpos = max(pos, flip)
|
||||
|
Loading…
x
Reference in New Issue
Block a user