diff options
author | Richard Levitte <levitte@openssl.org> | 2004-03-15 23:02:55 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2004-03-15 23:02:55 +0000 |
commit | ec37635c948e2cda2dc55e8b3630f516a4b06fd7 (patch) | |
tree | adf9e15c1f80355d599c8a9602f887d61fb7206b /crypto/rand/rand_unix.c | |
parent | fd836aeee017d4c7fef8e4d21afa07081e815be2 (diff) |
It was just pointed out to me that it's better to cast to double...
Diffstat (limited to 'crypto/rand/rand_unix.c')
-rw-r--r-- | crypto/rand/rand_unix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/rand/rand_unix.c b/crypto/rand/rand_unix.c index aef6914bb1..d2fdb35b56 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 |