fn fill_pool_paillier(n: usize, paillier_pk: &EncryptionKey) {
    // sequentially for wasm, else parallel
    #[cfg(feature = "wasm")]
    for _ in 0..n {
        let mut randomness =
            Paillier::precompute(paillier_pk, &Randomness::sample(paillier_pk).0).0;
        POOL_PAILLIER.push(randomness.clone());
        randomness.zeroize_bn();
    }
    #[cfg(not(feature = "wasm"))]
    (0..n).into_par_iter().for_each(|_| {
        let mut randomness =
            Paillier::precompute(paillier_pk, &Randomness::sample(paillier_pk).0).0;
        POOL_PAILLIER.push(randomness.clone());
        randomness.zeroize_bn();
    });
}
/// fill pool of random values for Paillier
fill pool of random values for Paillier
fill pool of random values for Paillier
fn fill_pool_paillier(n: usize, paillier_pk: &EncryptionKey) {
    // sequentially for wasm, else parallel
    #[cfg(feature = "wasm")]
    for _ in 0..n {
        let mut randomness =
            Paillier::precompute(paillier_pk, &Randomness::sample(paillier_pk).0).0;
        POOL_PAILLIER.push(randomness.clone());
        randomness.zeroize_bn();
    }
    #[cfg(not(feature = "wasm"))]
    (0..n).into_par_iter().for_each(|_| {
        let mut randomness =
            Paillier::precompute(paillier_pk, &Randomness::sample(paillier_pk).0).0;
        POOL_PAILLIER.push(randomness.clone());
        randomness.zeroize_bn();
    });
}
fn fill_pool_paillier ( n : usize , paillier_pk : & EncryptionKey ) { // sequentially for wasm, else parallel # [ cfg ( feature " " ) ] for _ in 0 .. n { let mut randomness = Paillier :: precompute ( paillier_pk , & Randomness :: sample ( paillier_pk ) . 0 ) . 0 ; POOL_PAILLIER . push ( randomness . clone ( ) ) ; randomness . zeroize_bn ( ) ; } # [ cfg ( not ( feature " " ) ) ] ( 0 .. n ) . into_par_iter ( ) . for_each ( | _ | { let mut randomness = Paillier :: precompute ( paillier_pk , & Randomness :: sample ( paillier_pk ) . 0 ) . 0 ; POOL_PAILLIER . push ( randomness . clone ( ) ) ; randomness . zeroize_bn ( ) ; } ) ; }
fill pool of random values for Paillier
fill pool of random values for Paillier
n
usize
paillier_pk
&EncryptionKey