mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-02-09 09:14:32 +00:00
fix randrange
This commit is contained in:
parent
166d5f36d4
commit
bdb1757e81
@ -275,7 +275,7 @@ def get_random_execution_requests(spec, state, rng):
|
||||
|
||||
def get_random_deposits_requests(spec, state, rng, num_deposits=None):
|
||||
if num_deposits is None:
|
||||
num_deposits = rng.randrange(0, spec.MAX_DEPOSIT_REQUESTS_PER_PAYLOAD)
|
||||
num_deposits = rng.randint(0, spec.MAX_DEPOSIT_REQUESTS_PER_PAYLOAD)
|
||||
|
||||
deposit_data_leaves = [spec.DepositData() for _ in range(len(state.validators))]
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user