mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-02-27 01:30:36 +00:00
Merge pull request #1045 from ethereum/fix-shuffling-gen
update shuffling func name
This commit is contained in:
commit
4e179fb801
@ -10,7 +10,7 @@ from preset_loader import loader
|
|||||||
def shuffling_case(seed: spec.Bytes32, count: int):
|
def shuffling_case(seed: spec.Bytes32, count: int):
|
||||||
yield 'seed', '0x' + seed.hex()
|
yield 'seed', '0x' + seed.hex()
|
||||||
yield 'count', count
|
yield 'count', count
|
||||||
yield 'shuffled', [spec.get_permuted_index(i, count, seed) for i in range(count)]
|
yield 'shuffled', [spec.get_shuffled_index(i, count, seed) for i in range(count)]
|
||||||
|
|
||||||
|
|
||||||
@to_tuple
|
@to_tuple
|
||||||
|
Loading…
x
Reference in New Issue
Block a user