diff options
author | Richard Levitte <levitte@openssl.org> | 2004-03-15 23:37:08 +0100 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2004-03-15 23:37:08 +0100 |
commit | fd836aeee017d4c7fef8e4d21afa07081e815be2 (patch) | |
tree | a965c2a41a004f2865f10652c2b875c98998640f /crypto/rand/md_rand.c | |
parent | Make sure we use unsigned constants, or come compilers may complain. (diff) | |
download | openssl-fd836aeee017d4c7fef8e4d21afa07081e815be2.tar.xz openssl-fd836aeee017d4c7fef8e4d21afa07081e815be2.zip |
Make sure that the last argument to RAND_add() is a float, or some
compilers may complain.
Diffstat (limited to 'crypto/rand/md_rand.c')
-rw-r--r-- | crypto/rand/md_rand.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/rand/md_rand.c b/crypto/rand/md_rand.c index 66b229c9b9..303e5898c4 100644 --- a/crypto/rand/md_rand.c +++ b/crypto/rand/md_rand.c @@ -315,7 +315,7 @@ static void ssleay_rand_add(const void *buf, int num, double add) static void ssleay_rand_seed(const void *buf, int num) { - ssleay_rand_add(buf, num, num); + ssleay_rand_add(buf, num, (float)num); } static int ssleay_rand_bytes(unsigned char *buf, int num) |