summaryrefslogtreecommitdiffstats
path: root/openpgp/src/keyid.rs
diff options
context:
space:
mode:
Diffstat (limited to 'openpgp/src/keyid.rs')
-rw-r--r--openpgp/src/keyid.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/openpgp/src/keyid.rs b/openpgp/src/keyid.rs
index f55fe336..40842146 100644
--- a/openpgp/src/keyid.rs
+++ b/openpgp/src/keyid.rs
@@ -1,4 +1,5 @@
use std::fmt;
+use quickcheck::{Arbitrary, Gen};
use Error;
use Fingerprint;
@@ -167,6 +168,12 @@ impl KeyID {
}
}
+impl Arbitrary for KeyID {
+ fn arbitrary<G: Gen>(g: &mut G) -> Self {
+ KeyID::new(u64::arbitrary(g))
+ }
+}
+
#[cfg(test)]
mod test {
use super::*;