diff options
author | Lutz Jänicke <jaenicke@openssl.org> | 2007-09-24 11:01:18 +0000 |
---|---|---|
committer | Lutz Jänicke <jaenicke@openssl.org> | 2007-09-24 11:01:18 +0000 |
commit | 7bbce69721077ad1f17a0b428b4f8f76bdf829e1 (patch) | |
tree | 9018ba0c360b471e16c7aae88eaff08880928952 /crypto/rand | |
parent | 870d6541f2d8a6701354e66c7c221f41dc21c0bc (diff) |
Port from 0.9.8-stable
Diffstat (limited to 'crypto/rand')
-rw-r--r-- | crypto/rand/rand_lib.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/crypto/rand/rand_lib.c b/crypto/rand/rand_lib.c index adfec83b7b..513e338985 100644 --- a/crypto/rand/rand_lib.c +++ b/crypto/rand/rand_lib.c @@ -154,7 +154,6 @@ void RAND_add(const void *buf, int num, double entropy) int RAND_bytes(unsigned char *buf, int num) { const RAND_METHOD *meth = RAND_get_rand_method(); - memset(buf, 0, num); if (meth && meth->bytes) return meth->bytes(buf,num); return(-1); @@ -163,7 +162,6 @@ int RAND_bytes(unsigned char *buf, int num) int RAND_pseudo_bytes(unsigned char *buf, int num) { const RAND_METHOD *meth = RAND_get_rand_method(); - memset(buf, 0, num); if (meth && meth->pseudorand) return meth->pseudorand(buf,num); return(-1); |