summaryrefslogtreecommitdiffstats
path: root/crypto/rand/rand_lib.c
diff options
context:
space:
mode:
authorBodo Möller <bodo@openssl.org>2000-02-19 15:22:53 +0000
committerBodo Möller <bodo@openssl.org>2000-02-19 15:22:53 +0000
commit853f757ecea74a271a7c5cdee3f3b5fe0d3ae863 (patch)
tree13a2eb9ba4e6b03334914e6e0b8cd465cadce870 /crypto/rand/rand_lib.c
parentae1bb4e572e02ce73d54c05ce18e872c36da2d35 (diff)
Allow for higher granularity of entropy estimates by using 'double'
instead of 'unsigned' counters. Seed PRNG in MacOS/GetHTTPS.src/GetHTTPS.cpp. Partially submitted by Yoram Meroz <yoram@mail.idrive.com>.
Diffstat (limited to 'crypto/rand/rand_lib.c')
-rw-r--r--crypto/rand/rand_lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/rand/rand_lib.c b/crypto/rand/rand_lib.c
index 9a0b804292..b09a300c46 100644
--- a/crypto/rand/rand_lib.c
+++ b/crypto/rand/rand_lib.c
@@ -89,7 +89,7 @@ void RAND_seed(const void *buf, int num)
rand_meth->seed(buf,num);
}
-void RAND_add(const void *buf, int num, int entropy)
+void RAND_add(const void *buf, int num, double entropy)
{
if (rand_meth != NULL)
rand_meth->add(buf,num,entropy);