Skip to content

Commit 33e4d62

Browse files
chore(deps): bump rand 0.8→0.10 and russh 0.52→0.60
Updates rand to 0.10.0 and russh to 0.60.0 with API migration and cargo-vet exemptions for new transitive dependencies.
1 parent 18f3a44 commit 33e4d62

3 files changed

Lines changed: 292 additions & 4 deletions

File tree

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ sha2 = "0.11"
6767

6868
# Ed25519 signing (bot-auth request signing)
6969
ed25519-dalek = { version = "2", features = ["rand_core"] }
70-
rand = "0.8"
70+
rand = "0.10"
7171

7272
# CLI
7373
clap = { version = "4", features = ["derive"] }
@@ -92,7 +92,7 @@ tracing = "0.1"
9292
tower = { version = "0.5", features = ["util"] }
9393

9494
# SSH client (for ssh/scp/sftp builtins)
95-
russh = "0.52"
95+
russh = "0.60"
9696
russh-keys = "0.49"
9797

9898
# Serial test execution

crates/bashkit/src/network/bot_auth.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
2121
use base64::{Engine, engine::general_purpose::URL_SAFE_NO_PAD};
2222
use ed25519_dalek::{Signer, SigningKey, VerifyingKey};
23-
use rand::RngCore;
23+
use rand::Rng;
2424
use sha2::{Digest, Sha256};
2525
use std::time::{SystemTime, UNIX_EPOCH};
2626

@@ -183,7 +183,7 @@ fn jwk_thumbprint_ed25519(key: &VerifyingKey) -> String {
183183
/// Generate a cryptographically random nonce (32 bytes, base64url-encoded).
184184
fn generate_nonce() -> String {
185185
let mut bytes = [0u8; 32];
186-
rand::thread_rng().fill_bytes(&mut bytes);
186+
rand::rng().fill_bytes(&mut bytes);
187187
URL_SAFE_NO_PAD.encode(bytes)
188188
}
189189

0 commit comments

Comments
 (0)