diff --git a/libosdp/Cargo.toml b/libosdp/Cargo.toml index 1fc19c6..2c48f28 100644 --- a/libosdp/Cargo.toml +++ b/libosdp/Cargo.toml @@ -26,7 +26,7 @@ itoa = "1.0.17" [dev-dependencies] env_logger = "0.11.8" multiqueue = "0.3.2" -rand = "0.9.2" +rand = "0.10.1" ringbuf = "0.5.0" sha256 = "1.6.0" diff --git a/libosdp/tests/file_transfer.rs b/libosdp/tests/file_transfer.rs index 60ce3b7..94d29d8 100644 --- a/libosdp/tests/file_transfer.rs +++ b/libosdp/tests/file_transfer.rs @@ -9,7 +9,7 @@ type Result = core::result::Result; use core::time::Duration; use libosdp::{OsdpCommand, OsdpCommandFileTx, OsdpError, OsdpFileOps}; -use rand::Rng; +use rand::RngExt; use std::{ cmp, collections::HashMap, diff --git a/osdpctl/Cargo.toml b/osdpctl/Cargo.toml index 661a728..11e8c19 100644 --- a/osdpctl/Cargo.toml +++ b/osdpctl/Cargo.toml @@ -24,5 +24,5 @@ libosdp = { path = "../libosdp" } log = "0.4.29" log4rs = "1.4.0" nix = { version = "0.31.1", features = ["signal"] } -rand = "0.9.2" +rand = "0.10.1" toml = "1.1.2" diff --git a/osdpctl/src/config.rs b/osdpctl/src/config.rs index bc1e551..c1e76f9 100644 --- a/osdpctl/src/config.rs +++ b/osdpctl/src/config.rs @@ -7,7 +7,7 @@ use anyhow::bail; use anyhow::Context; use configparser::ini::Ini; use libosdp::{ControlPanelBuilder, OsdpFlag, PdCapability, PdId, PdInfoBuilder}; -use rand::Rng; +use rand::RngExt; use std::{ fmt::Write, path::{Path, PathBuf},