Change test_rng import to ark-std

This commit is contained in:
ValarDragon
2020-12-11 19:49:55 -06:00
committed by Pratyush Mishra
parent b17b17efcc
commit 530d618cca
42 changed files with 84 additions and 58 deletions

View File

@@ -19,7 +19,7 @@
//! let cs = ConstraintSystem::<Fq>::new_ref();
//! // This rng is just for test purposes; do not use it
//! // in real applications.
//! let mut rng = ark_ff::test_rng();
//! let mut rng = ark_std::test_rng();
//!
//! // Generate some random `Fq` elements.
//! let a_native = Fq::rand(&mut rng);
@@ -66,7 +66,7 @@
//! # use ark_ed_on_mnt4_753::{*, constraints::*};
//!
//! # let cs = ConstraintSystem::<Fq>::new_ref();
//! # let mut rng = ark_ff::test_rng();
//! # let mut rng = ark_std::test_rng();
//!
//! // Generate some random `Edwards` elements.
//! let a_native = EdwardsProjective::rand(&mut rng);

View File

@@ -1,5 +1,5 @@
use ark_ec::{AffineCurve, ProjectiveCurve};
use ark_ff::test_rng;
use ark_std::test_rng;
use rand::Rng;
use crate::*;

View File

@@ -1,4 +1,4 @@
use ark_ff::test_rng;
use ark_std::test_rng;
use rand::Rng;
use crate::{Fq, Fr};