Replace rand with rand_core where possible

Turns out rand_core offers OsRng.
This commit is contained in:
Luke Parker
2022-07-27 05:43:23 -04:00
parent 023afaf7ce
commit 755dc84859
14 changed files with 23 additions and 25 deletions

View File

@@ -1,7 +1,7 @@
#[cfg(feature = "multisig")]
use std::sync::{Arc, RwLock};
use rand::{RngCore, rngs::OsRng};
use rand_core::{RngCore, OsRng};
use curve25519_dalek::{constants::ED25519_BASEPOINT_TABLE, scalar::Scalar};

View File

@@ -1,4 +1,4 @@
use rand::rngs::OsRng;
use rand_core::OsRng;
use curve25519_dalek::constants::ED25519_BASEPOINT_TABLE;

View File

@@ -4,7 +4,7 @@ use std::collections::HashMap;
use lazy_static::lazy_static;
use rand::rngs::OsRng;
use rand_core::OsRng;
#[cfg(feature = "multisig")]
use blake2::{digest::Update, Digest, Blake2b512};