aboutsummaryrefslogtreecommitdiff
path: root/crypto/rand/randfile.c
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2004-03-25 16:04:02 +0000
committerRichard Levitte <levitte@openssl.org>2004-03-25 16:04:02 +0000
commita481b4b52ce48aec3ccc6583a95e60cbb5c3042b (patch)
treeaea820aafca216c8b13aa1d7b319c5109fdf25cd /crypto/rand/randfile.c
parenta87228031f8a4e274c2f859a2589dcef2eb7cc58 (diff)
downloadopenssl-a481b4b52ce48aec3ccc6583a95e60cbb5c3042b.zip
openssl-a481b4b52ce48aec3ccc6583a95e60cbb5c3042b.tar.gz
openssl-a481b4b52ce48aec3ccc6583a95e60cbb5c3042b.tar.bz2
A couple more cases where RAND_add() gets an integer instead of a
doule as last argument.
Diffstat (limited to 'crypto/rand/randfile.c')
-rw-r--r--crypto/rand/randfile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/rand/randfile.c b/crypto/rand/randfile.c
index f5d0843..fd90352 100644
--- a/crypto/rand/randfile.c
+++ b/crypto/rand/randfile.c
@@ -104,7 +104,7 @@ int RAND_load_file(const char *file, long bytes)
i=stat(file,&sb);
/* If the state fails, put some crap in anyway */
- RAND_add(&sb,sizeof(sb),0);
+ RAND_add(&sb,sizeof(sb),0.0);
if (i < 0) return(0);
if (bytes == 0) return(ret);
@@ -129,7 +129,7 @@ int RAND_load_file(const char *file, long bytes)
i=fread(buf,1,n,in);
if (i <= 0) break;
/* even if n != i, use the full array */
- RAND_add(buf,n,i);
+ RAND_add(buf,n,(double)i);
ret+=i;
if (bytes > 0)
{