diff options
author | Ulf Möller <ulf@openssl.org> | 2000-01-16 15:58:17 +0000 |
---|---|---|
committer | Ulf Möller <ulf@openssl.org> | 2000-01-16 15:58:17 +0000 |
commit | 373b575f5a7b509bbadd67b1d57eef57dd23357a (patch) | |
tree | 67e1b8d65bdf6a1968754b194ad98123c28a7aae /crypto/rand/rand_lib.c | |
parent | e1798f856d00bd5317c6eebda00ef8e51d14b1de (diff) |
New function RAND_pseudo_bytes() generated pseudorandom numbers that
are not guaranteed to be unpredictable.
Diffstat (limited to 'crypto/rand/rand_lib.c')
-rw-r--r-- | crypto/rand/rand_lib.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/crypto/rand/rand_lib.c b/crypto/rand/rand_lib.c index 3cdba48ba8..9a0b804292 100644 --- a/crypto/rand/rand_lib.c +++ b/crypto/rand/rand_lib.c @@ -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); + } |