mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-02-18 04:43:32 +00:00
a_deg should be degree of a
This commit is contained in:
parent
6a6414163a
commit
3b767ca42f
@ -526,9 +526,9 @@ mod tests {
|
||||
fn test_inv_mod_xn() {
|
||||
type F = GoldilocksField;
|
||||
let mut rng = thread_rng();
|
||||
let a_deg = rng.gen_range(1..1_000);
|
||||
let a_deg = rng.gen_range(0..1_000);
|
||||
let n = rng.gen_range(1..1_000);
|
||||
let mut a = PolynomialCoeffs::new(F::rand_vec(a_deg));
|
||||
let mut a = PolynomialCoeffs::new(F::rand_vec(a_deg + 1));
|
||||
if a.coeffs[0].is_zero() {
|
||||
a.coeffs[0] = F::ONE; // First coefficient needs to be nonzero.
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user