summaryrefslogtreecommitdiffstats
path: root/fuzz/cmp.c
diff options
context:
space:
mode:
authorPauli <paul.dale@oracle.com>2020-12-10 12:04:58 +1000
committerPauli <ppzgs1@gmail.com>2021-02-23 23:24:13 +1000
commitde2ea978b5be4607c677aaefceebff39b1520e0a (patch)
tree919c1c9cc6345ee7358f9abee6eff009ad5d4e87 /fuzz/cmp.c
parent0a89ae97d96275994d96b560400d3fa97f752879 (diff)
RAND_METHOD deprecation: fuzzer
Reviewed-by: Tim Hudson <tjh@openssl.org> (Merged from https://github.com/openssl/openssl/pull/13652)
Diffstat (limited to 'fuzz/cmp.c')
-rw-r--r--fuzz/cmp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fuzz/cmp.c b/fuzz/cmp.c
index ae4c1ec753..82a812baba 100644
--- a/fuzz/cmp.c
+++ b/fuzz/cmp.c
@@ -16,14 +16,13 @@
#include "../crypto/cmp/cmp_local.h"
#include <openssl/err.h>
#include "fuzzer.h"
-#include "rand.inc"
int FuzzerInitialize(int *argc, char ***argv)
{
+ FuzzerSetRand();
OPENSSL_init_crypto(OPENSSL_INIT_LOAD_CRYPTO_STRINGS, NULL);
ERR_clear_error();
CRYPTO_free_ex_index(0, -1);
- FuzzerSetRand();
return 1;
}
@@ -200,4 +199,5 @@ int FuzzerTestOneInput(const uint8_t *buf, size_t len)
void FuzzerCleanup(void)
{
+ FuzzerClearRand();
}