Run more iterations of run_field_misc

At count=64, this makes the test take around 1% of the total time.
This commit is contained in:
Pieter Wuille 2021-12-21 20:47:06 -05:00 committed by Peter Dettman
parent 9cc5c257ed
commit 2cbb4b1a42
1 changed files with 6 additions and 2 deletions

View File

@ -2478,9 +2478,13 @@ void run_field_misc(void) {
secp256k1_fe q;
secp256k1_fe fe5 = SECP256K1_FE_CONST(0, 0, 0, 0, 0, 0, 0, 5);
int i, j;
for (i = 0; i < 5*count; i++) {
for (i = 0; i < 1000 * count; i++) {
secp256k1_fe_storage xs, ys, zs;
random_fe(&x);
if (i & 1) {
random_fe(&x);
} else {
random_fe_test(&x);
}
random_fe_non_zero(&y);
/* Test the fe equality and comparison operations. */
CHECK(secp256k1_fe_cmp_var(&x, &x) == 0);