From 358b09f9d5170cf91f256aeb2906354ee6d45237 Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Wed, 7 Aug 2019 10:15:41 -0700 Subject: [PATCH] srp: update to rand-0.7 This will also increase the MSRV to rust-1.32 or later. refs #21 --- srp/Cargo.toml | 2 +- srp/tests/mod.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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