File tree Expand file tree Collapse file tree
crates/bashkit/src/network Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ sha2 = "0.11"
6767
6868# Ed25519 signing (bot-auth request signing)
6969ed25519-dalek = { version = " 2" , features = [" rand_core" ] }
70- rand = " 0.8 "
70+ rand = " 0.10 "
7171
7272# CLI
7373clap = { version = " 4" , features = [" derive" ] }
@@ -92,7 +92,7 @@ tracing = "0.1"
9292tower = { version = " 0.5" , features = [" util" ] }
9393
9494# SSH client (for ssh/scp/sftp builtins)
95- russh = " 0.52 "
95+ russh = " 0.60 "
9696russh-keys = " 0.49"
9797
9898# Serial test execution
Original file line number Diff line number Diff line change 2020
2121use base64:: { Engine , engine:: general_purpose:: URL_SAFE_NO_PAD } ;
2222use ed25519_dalek:: { Signer , SigningKey , VerifyingKey } ;
23- use rand:: RngCore ;
23+ use rand:: Rng ;
2424use sha2:: { Digest , Sha256 } ;
2525use 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).
184184fn 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
You can’t perform that action at this time.
0 commit comments