Skip to content

Commit

Permalink
signature: update remaining use of CryptoRng + RngCore (#1151)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
tarcieri authored Nov 4, 2022
1 parent 3d23e55 commit b49cc05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions signature/src/hazmat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
use crate::Error;

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

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

0 comments on commit b49cc05

Please sign in to comment.