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)
This commit is contained in:
Tomas Mraz 2021-02-24 16:44:41 +01:00
parent 0c84139c98
commit 8cdc3425af

View File

@ -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;
}