diff --git a/Cargo.lock b/Cargo.lock index 7dcd3e4..48ffde9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -20,7 +20,7 @@ dependencies = [ "mslnk", "once_cell", "openssl", - "rand 0.9.2", + "rand 0.10.2", "reqwest", "self-replace", "semver", @@ -198,6 +198,17 @@ version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "613afe47fcd5fac7ccf1db93babcb082c5994d996f20b8b159f2ad1658eb5724" +[[package]] +name = "chacha20" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d524456ba66e72eb8b115ff89e01e497f8e6d11d78b70b1aa13c0fbd97540a81" +dependencies = [ + "cfg-if", + "cpufeatures 0.3.0", + "rand_core 0.10.1", +] + [[package]] name = "chrono" version = "0.4.37" @@ -596,6 +607,18 @@ dependencies = [ "windows-targets 0.52.6", ] +[[package]] +name = "getrandom" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "300e883d756b2e4ec94e02791f39b04b522276138852cfc41d9fb7e904106099" +dependencies = [ + "cfg-if", + "libc", + "r-efi", + "rand_core 0.10.1", +] + [[package]] name = "h2" version = "0.4.7" @@ -1249,6 +1272,12 @@ dependencies = [ "proc-macro2", ] +[[package]] +name = "r-efi" +version = "6.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf" + [[package]] name = "rand" version = "0.8.5" @@ -1270,6 +1299,17 @@ dependencies = [ "rand_core 0.9.2", ] +[[package]] +name = "rand" +version = "0.10.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c7f5fa3a058cd35567ef9bfa5e75732bee0f9e4c55fa90477bef2dfcdbc4be80" +dependencies = [ + "chacha20", + "getrandom 0.4.3", + "rand_core 0.10.1", +] + [[package]] name = "rand_chacha" version = "0.3.1" @@ -1309,6 +1349,12 @@ dependencies = [ "zerocopy", ] +[[package]] +name = "rand_core" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "63b8176103e19a2643978565ca18b50549f6101881c443590420e4dc998a3c69" + [[package]] name = "redox_syscall" version = "0.5.3" diff --git a/Cargo.toml b/Cargo.toml index 70a6b0c..29d2268 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,7 +14,7 @@ panic = "abort" blake3 = "1.8" serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" -rand = "0.9" +rand = "0.10" semver = "1.0" colored = "3.1" once_cell = "1.21" diff --git a/src/misc.rs b/src/misc.rs index ffa79cd..5c5b904 100644 --- a/src/misc.rs +++ b/src/misc.rs @@ -1,3 +1,4 @@ +use rand::RngExt; use std::fs; #[cfg(windows)] use std::path::Path;