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)
|
for i in range((n + 255) // 256)
|
||||||
])
|
])
|
||||||
pivot = int.from_bytes(hash(seed + round.to_bytes(1, 'big')), 'big') % n
|
pivot = int.from_bytes(hash(seed + round.to_bytes(1, 'big')), 'big') % n
|
||||||
|
|
||||||
def permute(pos):
|
def permute(pos):
|
||||||
flip = (pivot - pos) % n
|
flip = (pivot - pos) % n
|
||||||
maxpos = max(pos, flip)
|
maxpos = max(pos, flip)
|
||||||
|
|
Loading…
Reference in New Issue