diff options
Diffstat (limited to 'openpgp/src/fingerprint.rs')
-rw-r--r-- | openpgp/src/fingerprint.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/openpgp/src/fingerprint.rs b/openpgp/src/fingerprint.rs index d60f3faa..cdb37ca2 100644 --- a/openpgp/src/fingerprint.rs +++ b/openpgp/src/fingerprint.rs @@ -345,10 +345,9 @@ impl Fingerprint { #[cfg(test)] impl Arbitrary for Fingerprint { - fn arbitrary<G: Gen>(g: &mut G) -> Self { - use rand::Rng; + fn arbitrary(g: &mut Gen) -> Self { let mut fp = [0; 20]; - fp.iter_mut().for_each(|p| *p = g.gen()); + fp.iter_mut().for_each(|p| *p = Arbitrary::arbitrary(g)); Fingerprint::V4(fp) } } |