Fix applications that call RAND_bytes() before any other RAND function.
Last change was...a bit too simple.
This commit is contained in:
parent
75a00e2db4
commit
36a4733e75
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue