diff options
author | Richard Levitte <levitte@openssl.org> | 2004-03-15 22:37:08 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2004-03-15 22:37:08 +0000 |
commit | fd836aeee017d4c7fef8e4d21afa07081e815be2 (patch) | |
tree | a965c2a41a004f2865f10652c2b875c98998640f /crypto/rand/rand_unix.c | |
parent | 560f7abb7e12d09b5e1dd2e9c8e3c6a04fc901d3 (diff) |
Make sure that the last argument to RAND_add() is a float, or some
compilers may complain.
Diffstat (limited to 'crypto/rand/rand_unix.c')
-rw-r--r-- | crypto/rand/rand_unix.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crypto/rand/rand_unix.c b/crypto/rand/rand_unix.c index ef80201212..aef6914bb1 100644 --- a/crypto/rand/rand_unix.c +++ b/crypto/rand/rand_unix.c @@ -233,19 +233,19 @@ int RAND_poll(void) #if defined(DEVRANDOM) || defined(DEVRANDOM_EGD) if (n > 0) { - RAND_add(tmpbuf,sizeof tmpbuf,n); + RAND_add(tmpbuf,sizeof tmpbuf,(float)n); OPENSSL_cleanse(tmpbuf,n); } #endif /* put in some default random data, we need more than just this */ l=curr_pid; - RAND_add(&l,sizeof(l),0); + RAND_add(&l,sizeof(l),0.0); l=getuid(); - RAND_add(&l,sizeof(l),0); + RAND_add(&l,sizeof(l),0.0); l=time(NULL); - RAND_add(&l,sizeof(l),0); + RAND_add(&l,sizeof(l),0.0); #if defined(DEVRANDOM) || defined(DEVRANDOM_EGD) return 1; |