diff --git a/Cargo.lock b/Cargo.lock index 044510e..f9cc275 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1657,7 +1657,7 @@ dependencies = [ "osascript", "protobuf", "protobuf-codegen", - "rand 0.9.5", + "rand 0.10.2", "regex", "rustls-native-certs", "rustls-pki-types", diff --git a/libs/hbb_common/Cargo.toml b/libs/hbb_common/Cargo.toml index 6d0b2e6..692de2f 100644 --- a/libs/hbb_common/Cargo.toml +++ b/libs/hbb_common/Cargo.toml @@ -26,7 +26,7 @@ anyhow = "1.0" futures-util = "0.3" directories-next = "2.0" ed25519-dalek = "3.0" -rand = "0.9" +rand = "0.10" serde_derive = "1.0" serde = "1.0" serde_json = "1.0" diff --git a/libs/hbb_common/src/config.rs b/libs/hbb_common/src/config.rs index f8a0e66..67002aa 100644 --- a/libs/hbb_common/src/config.rs +++ b/libs/hbb_common/src/config.rs @@ -12,7 +12,7 @@ use std::{ use crate::crypto_sign as sign; use anyhow::{anyhow, Result}; use bytes::Bytes; -use rand::Rng; +use rand::RngExt; use regex::Regex; use serde as de; use serde_derive::{Deserialize, Serialize}; diff --git a/libs/hbb_common/src/password_security.rs b/libs/hbb_common/src/password_security.rs index 99bfc4a..efffb08 100644 --- a/libs/hbb_common/src/password_security.rs +++ b/libs/hbb_common/src/password_security.rs @@ -268,7 +268,7 @@ mod test { #[test] fn test() { use super::*; - use rand::Rng; + use rand::RngExt; use std::time::Instant; let version = "00";