mirror of
https://github.com/arnaucube/ark-curves-cherry-picked.git
synced 2026-01-09 07:21:30 +01:00
Change test_rng import to ark-std
This commit is contained in:
committed by
Pratyush Mishra
parent
b17b17efcc
commit
530d618cca
@@ -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_bn254::{*, 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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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::*;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user