mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-01-29 20:05:21 +00:00
Update 0_beacon-chain.md
This commit is contained in:
parent
65255e53c4
commit
92514716fb
@ -698,7 +698,7 @@ def get_active_validator_indices(validators: List[Validator], epoch: EpochNumber
|
||||
```python
|
||||
def get_permuted_index(index: int, list_size: int, seed: Bytes32) -> 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
|
||||
|
Loading…
x
Reference in New Issue
Block a user