Skip to content

Commit b49cc05

Browse files
authored
signature: update remaining use of CryptoRng + RngCore (#1151)
In #1147, other usages of a CSRNG were changed to use `&mut impl CryptoRngCore`. However, `RandomizedPrehashSigner` was not updated accordingly. This commit updates it as well.
1 parent 3d23e55 commit b49cc05

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

signature/src/hazmat.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
use crate::Error;
1414

1515
#[cfg(feature = "rand-preview")]
16-
use crate::rand_core::{CryptoRng, RngCore};
16+
use crate::rand_core::CryptoRngCore;
1717

1818
/// Sign the provided message prehash, returning a digital signature.
1919
pub trait PrehashSigner<S> {
@@ -50,7 +50,7 @@ pub trait RandomizedPrehashSigner<S> {
5050
/// implementation to decide.
5151
fn sign_prehash_with_rng(
5252
&self,
53-
rng: impl CryptoRng + RngCore,
53+
rng: &mut impl CryptoRngCore,
5454
prehash: &[u8],
5555
) -> Result<S, Error>;
5656
}

0 commit comments

Comments
 (0)