Skip to content
This repository has been archived by the owner on Jul 1, 2021. It is now read-only.

Commit

Permalink
Update eth2/beacon/_utils/random.py
Browse files Browse the repository at this point in the history
Co-Authored-By: hwwhww <[email protected]>
  • Loading branch information
NIC619 and hwwhww authored Mar 7, 2019
1 parent 30bd629 commit d673498
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eth2/beacon/_utils/random.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def get_permuted_index(index: int,
seed: Hash32,
shuffle_round_count: int=90) -> int:
"""
Return a pseudorandom permutation of `0...list_size-1` with ``seed`` as entropy.
Return `p(index)` in a pseudorandom permutation `p` of `0...list_size-1` with ``seed`` as entropy.
Utilizes 'swap or not' shuffling found in
https://link.springer.com/content/pdf/10.1007%2F978-3-642-32009-5_1.pdf
Expand Down

0 comments on commit d673498

Please sign in to comment.