EIP4844: Make extra sure we didn't win the jackpot
This commit is contained in:
parent
6e5df21f7d
commit
c6453e215d
|
@ -42,7 +42,9 @@ def test_barycentric_outside_domain(spec, state):
|
|||
n_samples = 12
|
||||
|
||||
for i in range(n_samples):
|
||||
# Get a random evaluation point
|
||||
# Get a random evaluation point and make sure it's not a root of unity
|
||||
z = rng.randint(0, spec.BLS_MODULUS - 1)
|
||||
while z in roots_of_unity_brp:
|
||||
z = rng.randint(0, spec.BLS_MODULUS - 1)
|
||||
|
||||
# Get p(z) by evaluating poly in coefficient form
|
||||
|
|
Loading…
Reference in New Issue