From 95a4101a9abf78b91463836e48c9a00ad08b62a4 Mon Sep 17 00:00:00 2001 From: Luke Parker Date: Wed, 13 Jul 2022 02:48:36 -0400 Subject: [PATCH] Tweak the hash_to_point test It ran for too long and had a "test_" prefix not shared with other tests. --- coins/monero/src/tests/hash_to_point.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/coins/monero/src/tests/hash_to_point.rs b/coins/monero/src/tests/hash_to_point.rs index b04bbb9f..207f2ee5 100644 --- a/coins/monero/src/tests/hash_to_point.rs +++ b/coins/monero/src/tests/hash_to_point.rs @@ -2,12 +2,12 @@ use rand::rngs::OsRng; use curve25519_dalek::constants::ED25519_BASEPOINT_TABLE; -use crate::{random_scalar, ringct::hash_to_point::{hash_to_point, rust_hash_to_point}}; +use crate::{random_scalar, ringct::hash_to_point::{hash_to_point as c_hash_to_point, rust_hash_to_point}}; #[test] -fn test_hash_to_point() { - for _ in 0 .. 200 { +fn hash_to_point() { + for _ in 0 .. 50 { let point = &random_scalar(&mut OsRng) * &ED25519_BASEPOINT_TABLE; - assert_eq!(rust_hash_to_point(point), hash_to_point(point)); + assert_eq!(rust_hash_to_point(point), c_hash_to_point(point)); } }