summaryrefslogtreecommitdiffstats
path: root/fuzz/x509.c
diff options
context:
space:
mode:
Diffstat (limited to 'fuzz/x509.c')
-rw-r--r--fuzz/x509.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/fuzz/x509.c b/fuzz/x509.c
index dd9075acd7..78061d176a 100644
--- a/fuzz/x509.c
+++ b/fuzz/x509.c
@@ -14,14 +14,12 @@
#include <openssl/rand.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;
}
@@ -50,4 +48,5 @@ int FuzzerTestOneInput(const uint8_t *buf, size_t len)
void FuzzerCleanup(void)
{
+ FuzzerClearRand();
}