Migrate remaining crates to rand 0.5

This commit is contained in:
Jack Grigg
2019-07-11 09:03:04 -04:00
parent 6149166ccb
commit ccf75c39c1
6 changed files with 29 additions and 17 deletions

View File

@@ -11,6 +11,6 @@ blake2b_simd = "0.5"
byteorder = "1"
ff = { path = "../ff" }
pairing = { path = "../pairing" }
rand = "0.4"
rand = "0.5"
sapling-crypto = { path = "../sapling-crypto" }
zcash_primitives = { path = "../zcash_primitives" }

View File

@@ -3,7 +3,7 @@ use bellman::groth16::{
};
use ff::Field;
use pairing::bls12_381::{Bls12, Fr};
use rand::{OsRng, Rand};
use rand::OsRng;
use sapling_crypto::{
circuit::{
multipack,
@@ -59,7 +59,7 @@ impl SaplingProvingContext {
let mut rng = OsRng::new().expect("should be able to construct RNG");
// We create the randomness of the value commitment
let rcv = Fs::rand(&mut rng);
let rcv = Fs::random(&mut rng);
// Accumulate the value commitment randomness in the context
{
@@ -194,7 +194,7 @@ impl SaplingProvingContext {
// We construct ephemeral randomness for the value commitment. This
// randomness is not given back to the caller, but the synthetic
// blinding factor `bsk` is accumulated in the context.
let rcv = Fs::rand(&mut rng);
let rcv = Fs::random(&mut rng);
// Accumulate the value commitment randomness in the context
{