diff --git a/src/hmac.rs b/src/hmac.rs index 1e63b3772..8016acdc0 100644 --- a/src/hmac.rs +++ b/src/hmac.rs @@ -184,7 +184,7 @@ impl Key { /// recommendation in https://tools.ietf.org/html/rfc2104#section-3. pub fn generate( algorithm: Algorithm, - rng: &rand::SecureRandom, + rng: &dyn rand::SecureRandom, ) -> Result { Self::construct(algorithm, |buf| rng.fill(buf)) }