diff --git a/src/msm.rs b/src/msm.rs index 365a6018..2ad8fd51 100644 --- a/src/msm.rs +++ b/src/msm.rs @@ -632,7 +632,10 @@ mod test { #[cfg(test)] fn run_msm_cross(min_k: usize, max_k: usize) { + use rayon::iter::{IntoParallelIterator, ParallelIterator}; + let points = (0..1 << max_k) + .into_par_iter() .map(|_| C::Curve::random(OsRng)) .collect::>(); let mut affine_points = vec![C::identity(); 1 << max_k]; @@ -640,6 +643,7 @@ mod test { let points = affine_points; let scalars = (0..1 << max_k) + .into_par_iter() .map(|_| C::Scalar::random(OsRng)) .collect::>();