mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 12:19:24 +00:00
Replace rand with rand_core where possible
Turns out rand_core offers OsRng.
This commit is contained in:
@@ -31,8 +31,6 @@ multiexp = { path = "../multiexp", version = "0.2", features = ["batch"] }
|
||||
dleq = { package = "dleq-serai", path = "../dleq", version = "0.1", features = ["serialize"] }
|
||||
|
||||
[dev-dependencies]
|
||||
rand = "0.8"
|
||||
|
||||
sha2 = "0.10"
|
||||
dalek-ff-group = { path = "../dalek-ff-group" }
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
use rand::rngs::OsRng;
|
||||
use rand_core::OsRng;
|
||||
|
||||
use crate::{
|
||||
curve,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
use rand::rngs::OsRng;
|
||||
use rand_core::OsRng;
|
||||
|
||||
#[cfg(any(feature = "secp256k1", feature = "p256"))]
|
||||
use crate::tests::vectors::{Vectors, test_with_vectors};
|
||||
|
||||
Reference in New Issue
Block a user