test: update test_random to create real contexts instead of sharing one
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/14341)
diff --git a/test/testutil.h b/test/testutil.h
index 93c91a4..8989b1f 100644
--- a/test/testutil.h
+++ b/test/testutil.h
@@ -569,7 +569,9 @@
/* Fake non-secure random number generator */
OSSL_PROVIDER *fake_rand_start(OSSL_LIB_CTX *libctx);
void fake_rand_finish(OSSL_PROVIDER *p);
-void fake_rand_set_callback(int (*cb)(unsigned char *out, size_t outlen));
+void fake_rand_set_callback(EVP_RAND_CTX *ctx,
+ int (*cb)(unsigned char *out, size_t outlen,
+ const char *name, EVP_RAND_CTX *ctx));
/* Create a file path from a directory and a filename */
char *test_mk_file_path(const char *dir, const char *file);