Skip to content

Commit

Permalink
Merge pull request dalek-cryptography#302 from isislovecruft/fix/228-…
Browse files Browse the repository at this point in the history
…remove-ristretto-random-test

Remove test for validity of randomly generated RistrettoPoints.
  • Loading branch information
hdevalence authored Oct 28, 2019
2 parents 4023b91 + 0709a27 commit 4cc0afd
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/ristretto.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 4cc0afd

Please sign in to comment.