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:
parent
9cc5c257ed
commit
2cbb4b1a42
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue