File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -7086,11 +7086,15 @@ int main(int argc, char **argv) {
7086
7086
run_context_tests (0 );
7087
7087
run_context_tests (1 );
7088
7088
run_scratch_tests ();
7089
+
7089
7090
ctx = secp256k1_context_create (SECP256K1_CONTEXT_SIGN | SECP256K1_CONTEXT_VERIFY );
7090
- if (secp256k1_testrand_bits (1 )) {
7091
+ /* Randomize the context only with probability 15/16
7092
+ to make sure we test without context randomization from time to time.
7093
+ TODO Reconsider this when recalibrating the tests. */
7094
+ if (secp256k1_testrand_bits (4 )) {
7091
7095
unsigned char rand32 [32 ];
7092
7096
secp256k1_testrand256 (rand32 );
7093
- CHECK (secp256k1_context_randomize (ctx , secp256k1_testrand_bits ( 1 ) ? rand32 : NULL ));
7097
+ CHECK (secp256k1_context_randomize (ctx , rand32 ));
7094
7098
}
7095
7099
7096
7100
run_rand_bits ();
You can’t perform that action at this time.
0 commit comments