From a87c3247ca641f2593391bf44d47e3dccc7f8d73 Mon Sep 17 00:00:00 2001 From: Pauli Date: Wed, 27 Oct 2021 08:22:09 +1000 Subject: [PATCH] Remove redundant RAND_get0_private() call The test called this twice which doesn't hurt but isn't ideal. Reviewed-by: Bernd Edlinger (Merged from https://github.com/openssl/openssl/pull/16921) --- test/rand_test.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/test/rand_test.c b/test/rand_test.c index 864f3cdb51e..c6cf32610eb 100644 --- a/test/rand_test.c +++ b/test/rand_test.c @@ -21,9 +21,6 @@ static int test_rand(void) unsigned char entropy2[] = { 0xff, 0xfe, 0xfd }; unsigned char outbuf[3]; - if (!TEST_ptr(privctx = RAND_get0_private(NULL))) - return 0; - *p++ = OSSL_PARAM_construct_octet_string(OSSL_RAND_PARAM_TEST_ENTROPY, entropy1, sizeof(entropy1)); *p = OSSL_PARAM_construct_end(); -- 2.47.2