X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=crypto%2Frand%2Fmd_rand.c;fp=crypto%2Frand%2Fmd_rand.c;h=0cf6e90834820f129ec29b7f6806e17df09b5c53;hp=85ce4e6f982ed299cf1695a9f2b6a8cd4cce4eb2;hb=3a9b9b2deb8e19fa10e7c3c99ad0baa2f90f13fa;hpb=3a85d05fb3977ddc3b2f97cf4641b73e10bb952b diff --git a/crypto/rand/md_rand.c b/crypto/rand/md_rand.c index 85ce4e6f98..0cf6e90834 100644 --- a/crypto/rand/md_rand.c +++ b/crypto/rand/md_rand.c @@ -33,7 +33,7 @@ # include #endif -#ifdef BN_DEBUG +#if defined(BN_DEBUG) || defined(FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION) # define PREDICT #endif @@ -307,7 +307,7 @@ static int rand_bytes(unsigned char *buf, int num, int pseudo) #ifdef PREDICT if (rand_predictable) { - static unsigned char val = 0; + unsigned char val = 0; for (i = 0; i < num; i++) buf[i] = val++;