summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorTomas Mraz <tomas@openssl.org>2021-02-24 16:44:41 +0100
committerTomas Mraz <tomas@openssl.org>2021-02-25 14:01:54 +0100
commit8cdc3425aff7447af868de8590053191b32ad454 (patch)
treee7991b5f35746e004795e34cb6cc9819a175fe98 /test
parent0c84139c98bf81de2ec8e5aba8aef428ce6e1079 (diff)
fake_random: Do not overwrite the callback on instatiation
Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from https://github.com/openssl/openssl/pull/14299)
Diffstat (limited to 'test')
-rw-r--r--test/testutil/fake_random.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/test/testutil/fake_random.c b/test/testutil/fake_random.c
index 710e707234..7e18e72d45 100644
--- a/test/testutil/fake_random.c
+++ b/test/testutil/fake_random.c
@@ -33,7 +33,6 @@ static OSSL_FUNC_rand_enable_locking_fn fake_rand_enable_locking;
static void *fake_rand_newctx(void *provctx, void *parent,
const OSSL_DISPATCH *parent_dispatch)
{
- fake_rand.cb = NULL;
fake_rand.state = EVP_RAND_STATE_UNINITIALISED;
return &fake_rand;
}