Add len() to BooleanBitfield

This commit is contained in:
Paul Hauner
2018-07-16 16:34:34 +10:00
parent f0d61c340a
commit 573294beee
2 changed files with 14 additions and 0 deletions

View File

@@ -4,6 +4,8 @@ use super::bls::Keypair;
use self::rand::thread_rng;
// Returns a keypair for use in testing purposes.
// It is dangerous because we provide no guarantees
// that the private key is unique or in-fact private.
pub fn get_dangerous_test_keypair() -> Keypair {
let mut rng = thread_rng();
Keypair::generate(&mut rng)