From 23cfe910799c88ab9ac2d4a02d977cd7944d52ac Mon Sep 17 00:00:00 2001 From: Nicholas Ward Date: Fri, 11 Feb 2022 09:02:21 -0800 Subject: [PATCH] fix --- plonky2/src/gadgets/curve_windowed_mul.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plonky2/src/gadgets/curve_windowed_mul.rs b/plonky2/src/gadgets/curve_windowed_mul.rs index bbb0a991..0479e142 100644 --- a/plonky2/src/gadgets/curve_windowed_mul.rs +++ b/plonky2/src/gadgets/curve_windowed_mul.rs @@ -131,7 +131,7 @@ mod tests { .collect(); let mut rng = rand::thread_rng(); - let mut access_index = rng.gen::() % 8; + let access_index = rng.gen::() % 8; let access_index_target = builder.constant(F::from_canonical_usize(access_index)); let selected = builder.random_access_curve_points(access_index_target, points.clone());