New function RAND_pseudo_bytes() generated pseudorandom numbers that
are not guaranteed to be unpredictable.
This commit is contained in:
@@ -102,3 +102,9 @@ int RAND_bytes(unsigned char *buf, int num)
|
||||
return(-1);
|
||||
}
|
||||
|
||||
int RAND_pseudo_bytes(unsigned char *buf, int num)
|
||||
{
|
||||
if (rand_meth != NULL)
|
||||
return rand_meth->pseudorand(buf,num);
|
||||
return(-1);
|
||||
}
|
||||
|
Reference in New Issue
Block a user