From 3d54581ab80515c6a25ff332fb191f06dd3b960f Mon Sep 17 00:00:00 2001 From: Ruben De Smet Date: Mon, 5 May 2025 18:38:28 +0200 Subject: [PATCH] Bump rand to 0.9 --- Cargo.toml | 6 +++--- src/transcript.rs | 5 ----- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 5842c6b..c0f5092 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -21,13 +21,13 @@ features = ["nightly"] keccak = { version = "0.1.0", default-features = false } byteorder = { version = "1.2.4", default-features = false } zeroize = { version = "1", default-features = false, features = ["zeroize_derive"] } -rand_core = { version = "0.5", default-features = false } +rand_core = { version = "0.9", default-features = false, features = ["os_rng"] } hex = {version = "0.3", default-features = false, optional = true} [dev-dependencies] strobe-rs = "0.5" -curve25519-dalek = "2" -rand_chacha = "0.2" +curve25519-dalek = { version = "4", features = ["rand_core"] } +rand_chacha = "0.9" [features] default = ["std"] diff --git a/src/transcript.rs b/src/transcript.rs index 9b72f48..1294517 100644 --- a/src/transcript.rs +++ b/src/transcript.rs @@ -366,11 +366,6 @@ impl rand_core::RngCore for TranscriptRng { self.strobe.meta_ad(&dest_len, false); self.strobe.prf(dest, false); } - - fn try_fill_bytes(&mut self, dest: &mut [u8]) -> Result<(), rand_core::Error> { - self.fill_bytes(dest); - Ok(()) - } } impl rand_core::CryptoRng for TranscriptRng {}