We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b515c03 commit ec332a1Copy full SHA for ec332a1
Cargo.toml
@@ -22,7 +22,7 @@ serde = "1"
22
serde_derive = "1"
23
tiny-keccak = "1.4.1"
24
failure = "0.1"
25
-merlin = "0.3"
+merlin = "0.4"
26
27
[dev-dependencies]
28
hex = "^0.3"
src/range_proof/mod.rs
@@ -191,9 +191,7 @@ impl RangeProof {
191
192
let w = transcript.challenge_scalar(b"w");
193
194
- let mut rng = transcript
195
- .fork_transcript()
196
- .reseed_from_rng(&mut rand::thread_rng());
+ let mut rng = transcript.build_rng().finalize(&mut rand::thread_rng());
197
198
// Challenge value for batching statements to be verified
199
let c = Scalar::random(&mut rng);
0 commit comments