diff options
author | levitte <levitte> | 2004-03-15 23:02:55 +0000 |
---|---|---|
committer | levitte <levitte> | 2004-03-15 23:02:55 +0000 |
commit | 6375b64231a85dfec0e9b0e6f92540624108f31d (patch) | |
tree | 70c3916ac5f9f098ce5f55c34cfaedb076493029 | |
parent | 21630cae5963251e11729fe06615072abcd6bc09 (diff) | |
download | openssl-LEVITTE_before_const.tar.gz |
It was just pointed out to me that it's better to cast to double...LEVITTE_before_const
-rw-r--r-- | crypto/rand/md_rand.c | 2 | ||||
-rw-r--r-- | crypto/rand/rand_unix.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/crypto/rand/md_rand.c b/crypto/rand/md_rand.c index 303e5898c..87fd9455e 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, (float)num); + ssleay_rand_add(buf, num, (double)num); } static int ssleay_rand_bytes(unsigned char *buf, int num) diff --git a/crypto/rand/rand_unix.c b/crypto/rand/rand_unix.c index aef6914bb..d2fdb35b5 100644 --- a/crypto/rand/rand_unix.c +++ b/crypto/rand/rand_unix.c @@ -233,7 +233,7 @@ int RAND_poll(void) #if defined(DEVRANDOM) || defined(DEVRANDOM_EGD) if (n > 0) { - RAND_add(tmpbuf,sizeof tmpbuf,(float)n); + RAND_add(tmpbuf,sizeof tmpbuf,(double)n); OPENSSL_cleanse(tmpbuf,n); } #endif |