This commit is contained in:
Greg Fitzgerald 2018-07-31 16:46:17 -06:00 committed by Grimes
parent 19b3cacd60
commit 68675bd1ab
1 changed files with 2 additions and 2 deletions

View File

@ -92,11 +92,11 @@ impl GenKeys {
}
}
pub fn new_key(&self) -> [u8; 85] {
fn new_key(&self) -> [u8; 85] {
KeyPair::generate_pkcs8(self).unwrap()
}
pub fn gen_n_seeds(&self, n: i64) -> Vec<[u8; 32]> {
fn gen_n_seeds(&self, n: i64) -> Vec<[u8; 32]> {
let mut rng = self.generator.borrow_mut();
(0..n).map(|_| rng.gen()).collect()
}