Merge bitcoin-core/secp256k1#1832: testrand: Remove testrand_finish

8d0eda07e9 testrand: Remove testrand_finish (Tim Ruffing)

Pull request description:

  This removes printing of the "random run = " at the end of the tests. I haven't seen a single case where this proved to be useful. And as of 48789dafc2, this is anyway printed only at the end of the exhaustive tests and not the normal tests, so the probability that this will be useful in the future is very low.

ACKs for top commit:
  sipa:
    ACK 8d0eda07e9

Tree-SHA512: e0a688e2c81afbf7a11204f1be71b472eb3ec23086c7dc742a069b7ddfc837fcf9ade9e04f8c3f79e8b07d38d05bf4979f6e3ca68a480e45de0c1ecb94b0a6f5
This commit is contained in:
merge-script
2026-03-02 21:01:32 +01:00
3 changed files with 0 additions and 11 deletions

View File

@@ -42,7 +42,4 @@ static void testrand_flip(unsigned char *b, size_t len);
/** Initialize the test RNG using (hex encoded) array up to 16 bytes, or randomly if hexseed is NULL. */
static void testrand_init(const char* hexseed);
/** Print final test information. */
static void testrand_finish(void);
#endif /* SECP256K1_TESTRAND_H */

View File

@@ -158,10 +158,4 @@ static void testrand_init(const char* hexseed) {
testrand_seed(seed16);
}
static void testrand_finish(void) {
unsigned char run32[32];
testrand256(run32);
printf("random run = %02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x\n", run32[0], run32[1], run32[2], run32[3], run32[4], run32[5], run32[6], run32[7], run32[8], run32[9], run32[10], run32[11], run32[12], run32[13], run32[14], run32[15]);
}
#endif /* SECP256K1_TESTRAND_IMPL_H */

View File

@@ -459,8 +459,6 @@ int main(int argc, char** argv) {
secp256k1_context_destroy(ctx);
}
testrand_finish();
printf("no problems found\n");
return EXIT_SUCCESS;
}