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_bls12_381::{*, 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,6 @@
use ark_ec::{AffineCurve, ProjectiveCurve};
use ark_ff::{bytes::FromBytes, test_rng, Zero};
use ark_ff::{bytes::FromBytes, Zero};
use ark_std::test_rng;
use core::str::FromStr;
use rand::Rng;

View File

@@ -3,8 +3,9 @@ use ark_ff::{
biginteger::BigInteger256 as BigInteger,
bytes::{FromBytes, ToBytes},
fields::{Field, LegendreSymbol::*, SquareRootField},
test_rng, One, Zero,
One, Zero,
};
use ark_std::test_rng;
use ark_curve_tests::fields::*;