From 39c117f3c4e8bafc67c359f8e5407bb060e11087 Mon Sep 17 00:00:00 2001 From: Joey Yandle Date: Tue, 8 Oct 2024 12:21:01 -0400 Subject: [PATCH] polys have degree not size --- src/common.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common.rs b/src/common.rs index 5b8c84f6..5793bd96 100644 --- a/src/common.rs +++ b/src/common.rs @@ -52,9 +52,9 @@ impl< Arg: Clone + One + Mul + MulAssign, > Polynomial { - /// construct new random polynomial of the specified size + /// construct new random polynomial of the specified degree pub fn random(n: usize, rng: &mut RNG) -> Self { - let params = (0..n).map(|_| Param::fill(rng)).collect::>(); + let params = (0..n + 1).map(|_| Param::fill(rng)).collect::>(); Self { params, _x: std::marker::PhantomData,