Fix applications that call RAND_bytes() before any other RAND function.

Last change was...a bit too simple.
This commit is contained in:
tls 2012-03-07 10:17:47 +00:00
parent 75a00e2db4
commit 36a4733e75
1 changed files with 1 additions and 0 deletions

View File

@ -395,6 +395,7 @@ static int ssleay_rand_bytes(unsigned char *buf, int num, int pseudo)
{
RAND_poll();
ok = (entropy >= ENTROPY_NEEDED);
/* If the PRNG state is not yet unpredictable, then seeing
* the PRNG output may help attackers to determine the new