From b57d78cf6b932b12e98d3447060806d76fed3247 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun, 4 Oct 2026 10:26:35 +0000 Subject: [PATCH 1/2] chore(deps): bump rand from 0.9.5 to 0.10.2 Bumps [rand](https://github.com/rust-random/rand) from 0.9.5 to 0.10.2. - [Release notes](https://github.com/rust-random/rand/releases) - [Changelog](https://github.com/rust-random/rand/blob/master/CHANGELOG.md) - [Commits](https://github.com/rust-random/rand/compare/0.9.5...0.10.2) --- updated-dependencies: - dependency-name: rand dependency-version: 0.10.2 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- Cargo.lock | 2 +- libs/hbb_common/Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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" From e6d37fff4eebae14638ec5b1b0c2e362142dfcad Mon Sep 17 00:00:00 2001 From: Danil Silantyev Date: Sun, 4 Oct 2026 15:51:24 +0500 Subject: [PATCH 2/2] fix(deps): import rand::RngExt for rand 0.10 random_range rand 0.10 moved random_range off Rng onto RngExt; import it at both call sites. Signed-off-by: Danil Silantyev --- libs/hbb_common/src/config.rs | 2 +- libs/hbb_common/src/password_security.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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";