Skip to content

Commit 34ce245

Browse files
committed
Suppress OsRng warning in IPP test
1 parent b994aba commit 34ce245

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/inner_product_proof.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -394,12 +394,11 @@ pub fn inner_product(a: &[Scalar], b: &[Scalar]) -> Scalar {
394394
mod tests {
395395
use super::*;
396396

397-
use rand::OsRng;
398397
use sha3::Sha3_512;
399398
use util;
400399

401400
fn test_helper_create(n: usize) {
402-
let mut rng = OsRng::new().unwrap();
401+
let mut rng = rand::thread_rng();
403402

404403
use generators::BulletproofGens;
405404
let bp_gens = BulletproofGens::new(n, 1);

0 commit comments

Comments
 (0)