Skip to content

Commit ac60b41

Browse files
authored
Update tests/zkevm/test_worst_compute.py
1 parent 4456cd2 commit ac60b41

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/zkevm/test_worst_compute.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1039,12 +1039,12 @@ def test_amortized_bn128_pairings(
10391039

10401040

10411041
def _generate_bn128_pairs(n: int, seed: int = 0):
1042-
random.seed(seed)
1042+
rng = random.Random(seed)
10431043
calldata = Bytes()
10441044

10451045
for _ in range(n):
1046-
priv_key_g1 = random.randint(1, 2**32 - 1)
1047-
priv_key_g2 = random.randint(1, 2**32 - 1)
1046+
priv_key_g1 = rng.randint(1, 2**32 - 1)
1047+
priv_key_g2 = rng.randint(1, 2**32 - 1)
10481048

10491049
point_x_affine = multiply(G1, priv_key_g1)
10501050
point_y_affine = multiply(G2, priv_key_g2)

0 commit comments

Comments
 (0)