diff --git a/srp/Cargo.toml b/srp/Cargo.toml index fa6ee77..8cb48c7 100644 --- a/srp/Cargo.toml +++ b/srp/Cargo.toml @@ -17,7 +17,7 @@ digest = "0.8" lazy_static = "1.2" [dev-dependencies] -rand = "0.6" +rand = "0.7" sha2 = "0.8" sha-1 = "0.8" diff --git a/srp/tests/mod.rs b/srp/tests/mod.rs index 58bfa0f..c348934 100644 --- a/srp/tests/mod.rs +++ b/srp/tests/mod.rs @@ -7,7 +7,7 @@ use srp::groups::G_2048; use srp::server::{SrpServer, UserRecord}; fn auth_test(reg_pwd: &[u8], auth_pwd: &[u8]) { - let mut rng = rand::rngs::OsRng::new().unwrap(); + let mut rng = rand::rngs::OsRng; let username = b"alice"; // Client instance creation