Merge pull request #302 from isislovecruft/fix/228-remove-ristretto-random-test

Remove test for validity of randomly generated RistrettoPoints.
This commit is contained in:
Henry de Valence 2019-10-28 10:29:11 -07:00 committed by GitHub
commit 4cc0afdcfc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1324,19 +1324,6 @@ mod test {
}
}
#[cfg(feature = "rand")]
#[test]
fn random_is_valid() {
let mut rng = OsRng::new().unwrap();
for _ in 0..100 {
let P = RistrettoPoint::random(&mut rng);
// Check that P is on the curve
assert!(P.0.is_valid());
// Check that P is in the image of the ristretto map
P.compress();
}
}
#[test]
fn vartime_precomputed_vs_nonprecomputed_multiscalar() {
let mut rng = rand::thread_rng();