Skip to content

Commit

Permalink
Fix wasm build
Browse files Browse the repository at this point in the history
  • Loading branch information
dvdplm committed Nov 25, 2024
1 parent 0cf32e8 commit 5ce9bf9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hazmat/uniform_sieve.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ use rand_core::CryptoRngCore;
#[cfg(feature = "default-rng")]
use rand_core::OsRng;

use crate::is_prime;
use crate::is_prime_with_rng;

/// Prime search using a uniform sieve.
pub trait UniformSieve<T>
Expand Down Expand Up @@ -204,7 +204,7 @@ where
}

let mut p = a * m + b;
while !is_prime(&p) {
while !is_prime_with_rng(rng, &p) {
a = T::random_bits(rng, a_max_bits);
while a >= a_max {
a = T::random_bits(rng, a_max_bits);
Expand Down

0 comments on commit 5ce9bf9

Please sign in to comment.