Loading crypto/rand/md_rand.c +19 −6 Original line number Diff line number Diff line Loading @@ -130,6 +130,10 @@ #include <openssl/rand.h> #ifdef BN_DEBUG # define PREDICT #endif /* #define NORAND 1 */ /* #define PREDICT 1 */ Loading @@ -141,6 +145,10 @@ static long md_count[2]={0,0}; static double entropy=0; static int initialized=0; #ifdef PREDICT int rand_predictable=0; #endif const char *RAND_version="RAND" OPENSSL_VERSION_PTEXT; static void ssleay_rand_cleanup(void); Loading Loading @@ -306,6 +314,10 @@ static void ssleay_rand_initialize(void) FILE *fh; #endif #ifdef NORAND return; #endif CRYPTO_w_unlock(CRYPTO_LOCK_RAND); /* put in some default random data, we need more than just this */ #ifndef GETPID_IS_MEANINGLESS Loading Loading @@ -354,6 +366,7 @@ static int ssleay_rand_bytes(unsigned char *buf, int num) #endif #ifdef PREDICT if (rand_predictable) { static unsigned char val=0; Loading crypto/rand/rand_egd.c +1 −1 File changed.Contains only whitespace changes. Show changes Loading
crypto/rand/md_rand.c +19 −6 Original line number Diff line number Diff line Loading @@ -130,6 +130,10 @@ #include <openssl/rand.h> #ifdef BN_DEBUG # define PREDICT #endif /* #define NORAND 1 */ /* #define PREDICT 1 */ Loading @@ -141,6 +145,10 @@ static long md_count[2]={0,0}; static double entropy=0; static int initialized=0; #ifdef PREDICT int rand_predictable=0; #endif const char *RAND_version="RAND" OPENSSL_VERSION_PTEXT; static void ssleay_rand_cleanup(void); Loading Loading @@ -306,6 +314,10 @@ static void ssleay_rand_initialize(void) FILE *fh; #endif #ifdef NORAND return; #endif CRYPTO_w_unlock(CRYPTO_LOCK_RAND); /* put in some default random data, we need more than just this */ #ifndef GETPID_IS_MEANINGLESS Loading Loading @@ -354,6 +366,7 @@ static int ssleay_rand_bytes(unsigned char *buf, int num) #endif #ifdef PREDICT if (rand_predictable) { static unsigned char val=0; Loading