mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-19 05:48:31 +00:00
Add len() to BooleanBitfield
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user