Update specs/core/0_beacon-chain.md

Co-Authored-By: vbuterin <v@buterin.com>
This commit is contained in:
Hsiao-Wei Wang 2019-02-06 18:33:11 -06:00 committed by GitHub
parent c58410e6ce
commit 37b41a2ce6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 1 deletions

View File

@ -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)