X-Git-Url: https://git.openssl.org/?a=blobdiff_plain;f=fuzz%2Fx509.c;h=926287da48617665eb947d25711841cfbb06cf02;hb=1362190b1b786a87378e55e9a1c20c46b6b6a286;hp=83b00f653f751d34aba6cd81b800e1f79b42a034;hpb=b534df96c99b7f6103188005a688944645e2ec7b;p=openssl.git diff --git a/fuzz/x509.c b/fuzz/x509.c index 83b00f653f..926287da48 100644 --- a/fuzz/x509.c +++ b/fuzz/x509.c @@ -14,22 +14,14 @@ #include #include "fuzzer.h" -#ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION -extern int rand_predictable; -#endif -#define ENTROPY_NEEDED 32 +#include "rand.inc" int FuzzerInitialize(int *argc, char ***argv) { OPENSSL_init_crypto(OPENSSL_INIT_LOAD_CRYPTO_STRINGS, NULL); ERR_get_state(); CRYPTO_free_ex_index(0, -1); - RAND_add("", 1, ENTROPY_NEEDED); - RAND_status(); - -#ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION - rand_predictable = 1; -#endif + FuzzerSetRand(); return 1; }