We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4456cd2 commit ac60b41Copy full SHA for ac60b41
tests/zkevm/test_worst_compute.py
@@ -1039,12 +1039,12 @@ def test_amortized_bn128_pairings(
1039
1040
1041
def _generate_bn128_pairs(n: int, seed: int = 0):
1042
- random.seed(seed)
+ rng = random.Random(seed)
1043
calldata = Bytes()
1044
1045
for _ in range(n):
1046
- priv_key_g1 = random.randint(1, 2**32 - 1)
1047
- priv_key_g2 = random.randint(1, 2**32 - 1)
+ priv_key_g1 = rng.randint(1, 2**32 - 1)
+ priv_key_g2 = rng.randint(1, 2**32 - 1)
1048
1049
point_x_affine = multiply(G1, priv_key_g1)
1050
point_y_affine = multiply(G2, priv_key_g2)
0 commit comments