Update to bls version 0.7.0

This commit is contained in:
Kirk Baird
2019-05-20 15:38:14 +10:00
parent 44657d44c4
commit c991f4631d
2 changed files with 5 additions and 2 deletions

View File

@@ -1,3 +1,5 @@
extern crate rand;
use super::BLS_SECRET_KEY_BYTE_SIZE;
use bls_aggregates::SecretKey as RawSecretKey;
use hex::encode as hex_encode;
@@ -16,7 +18,7 @@ pub struct SecretKey(RawSecretKey);
impl SecretKey {
pub fn random() -> Self {
SecretKey(RawSecretKey::random())
SecretKey(RawSecretKey::random(&mut rand::thread_rng()))
}
/// Returns the underlying point as compressed bytes.