New function RAND_pseudo_bytes() generated pseudorandom numbers that

are not guaranteed to be unpredictable.
This commit is contained in:
Ulf Möller
2000-01-16 15:58:17 +00:00
parent e1798f856d
commit 373b575f5a
8 changed files with 37 additions and 9 deletions

View File

@@ -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);
}