Skip to content

Commit a3dc48e

Browse files
committed
update rand to 0.9
1 parent e08a6b4 commit a3dc48e

File tree

5 files changed

+135
-18
lines changed

5 files changed

+135
-18
lines changed

Diff for: Cargo.lock

+128-11
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: bip32/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ rust-version = "1.81"
1919
[dependencies]
2020
bs58 = { version = "0.5", default-features = false, features = ["check"] }
2121
hmac = { version = "=0.13.0-pre.4", default-features = false }
22-
rand_core = { version = "0.6", default-features = false }
22+
rand_core = { version = "0.9", default-features = false }
2323
ripemd = { version = "=0.2.0-pre.4", default-features = false }
2424
sha2 = { version = "=0.11.0-pre.4", default-features = false }
2525
subtle = { version = "2", default-features = false }
@@ -33,7 +33,7 @@ secp256k1-ffi = { package = "secp256k1", version = "0.29", optional = true, defa
3333

3434
[dev-dependencies]
3535
hex-literal = "0.4"
36-
rand_core = { version = "0.6", features = ["std"] }
36+
rand_core = { version = "0.9", features = ["std"] }
3737

3838
[features]
3939
default = ["bip39", "secp256k1", "std"]

Diff for: hkd32/Cargo.toml

+3-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ rust-version = "1.63"
2020

2121
[dependencies]
2222
hmac = { version = "0.12", default-features = false }
23-
rand_core = { version = "0.6", default-features = false }
23+
rand_core = { version = "0.9", default-features = false, features = ["os_rng"] }
2424
sha2 = { version = "0.10", default-features = false }
2525
zeroize = { version = "1", default-features = false }
2626

@@ -31,7 +31,8 @@ subtle-encoding = { version = "=0.6.0-pre", optional = true, default-features =
3131

3232
[dev-dependencies]
3333
hex-literal = "0.4"
34-
rand_core = { version = "0.6", features = ["std"] }
34+
rand_core = { version = "0.9", features = ["std"] }
35+
rand = { version = "0.9", features = ["thread_rng"] }
3536

3637
[features]
3738
default = ["alloc", "bech32"]

Diff for: hkd32/src/lib.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,9 @@
2323
//! # Example
2424
//!
2525
//! ```rust
26-
//! use rand_core::OsRng;
2726
//!
2827
//! // Parent key
29-
//! let input_key_material = hkd32::KeyMaterial::random(&mut OsRng);
28+
//! let input_key_material = hkd32::KeyMaterial::random(&mut rand::rng());
3029
//!
3130
//! // Path to the child key
3231
//! let derivation_path = "/foo/bar/baz".parse::<hkd32::PathBuf>().unwrap();

Diff for: signatory/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ rust-version = "1.65"
1414

1515
[dependencies]
1616
pkcs8 = { version = "0.10", features = ["alloc", "pem"] }
17-
rand_core = "0.6"
17+
rand_core = "0.9"
1818
signature = "2"
1919
zeroize = "1.5"
2020

0 commit comments

Comments
 (0)