aboutsummaryrefslogtreecommitdiff
path: root/crypto/rand/md_rand.c
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2004-03-15 23:02:55 +0000
committerRichard Levitte <levitte@openssl.org>2004-03-15 23:02:55 +0000
commitec37635c948e2cda2dc55e8b3630f516a4b06fd7 (patch)
treeadf9e15c1f80355d599c8a9602f887d61fb7206b /crypto/rand/md_rand.c
parentfd836aeee017d4c7fef8e4d21afa07081e815be2 (diff)
downloadopenssl-ec37635c948e2cda2dc55e8b3630f516a4b06fd7.zip
openssl-ec37635c948e2cda2dc55e8b3630f516a4b06fd7.tar.gz
openssl-ec37635c948e2cda2dc55e8b3630f516a4b06fd7.tar.bz2
It was just pointed out to me that it's better to cast to double...
Diffstat (limited to 'crypto/rand/md_rand.c')
-rw-r--r--crypto/rand/md_rand.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/rand/md_rand.c b/crypto/rand/md_rand.c
index 303e589..87fd945 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)