Migrate zcash_primitives to rand_core 0.4

This commit is contained in:
Jack Grigg
2019-07-19 00:46:37 +02:00
parent 60d344a0a7
commit 8f7adec0d9
7 changed files with 40 additions and 37 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
use ff::Field;
use pairing::bls12_381::Bls12;
use rand::thread_rng;
use rand_os::OsRng;
use sapling_crypto::{
jubjub::{fs::Fs, FixedGenerators},
redjubjub::PrivateKey,
@@ -197,7 +197,7 @@ fn tx_write_rejects_unexpected_binding_sig() {
// Fails with an unexpected binding signature
{
let rng = &mut thread_rng();
let rng = &mut OsRng::new().expect("should be able to construct RNG");
let sk = PrivateKey::<Bls12>(Fs::random(rng));
let sig = sk.sign(
b"Foo bar",