Skip to content

Commit bdb1757

Browse files
fix randrange
1 parent 166d5f3 commit bdb1757

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/core/pyspec/eth2spec/test/helpers/multi_operations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ def get_random_execution_requests(spec, state, rng):
275275

276276
def get_random_deposits_requests(spec, state, rng, num_deposits=None):
277277
if num_deposits is None:
278-
num_deposits = rng.randrange(0, spec.MAX_DEPOSIT_REQUESTS_PER_PAYLOAD)
278+
num_deposits = rng.randint(0, spec.MAX_DEPOSIT_REQUESTS_PER_PAYLOAD)
279279

280280
deposit_data_leaves = [spec.DepositData() for _ in range(len(state.validators))]
281281

0 commit comments

Comments
 (0)