cargo +nightly fix.

This commit is contained in:
Brian Smith 2019-07-09 13:48:37 -10:00
parent c3d13e8851
commit 7d7a056fc1

View File

@ -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, error::Unspecified> {
Self::construct(algorithm, |buf| rng.fill(buf))
}