aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/rand/rand_win.c
diff options
context:
space:
mode:
authorUlf Möller <ulf@openssl.org>2000-11-04 03:33:26 +0000
committerUlf Möller <ulf@openssl.org>2000-11-04 03:33:26 +0000
commit361c7f2b52a1400b55ad93b1409e9eae61f41e94 (patch)
tree4778adb0117968b28372e8e72af9bc8be754ed28 /crypto/rand/rand_win.c
parent9f6fe8dbe70f4ef5a1263cf8f3d6351519373c8f (diff)
downloadopenssl-361c7f2b52a1400b55ad93b1409e9eae61f41e94.tar.gz
Set the CryptoAPI randomness estimate back to 0.
The randomness may not actually be very good (we don't know).
Diffstat (limited to 'crypto/rand/rand_win.c')
-rw-r--r--crypto/rand/rand_win.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/rand/rand_win.c b/crypto/rand/rand_win.c
index 163cee02c7..abefc5eadb 100644
--- a/crypto/rand/rand_win.c
+++ b/crypto/rand/rand_win.c
@@ -310,7 +310,7 @@ int RAND_poll(void)
{
if (gen(hProvider, sizeof(buf), buf) != 0)
{
- RAND_add(buf, sizeof(buf), sizeof(buf));
+ RAND_add(buf, sizeof(buf), 0);
#ifdef DEBUG
printf("randomness from PROV_RSA_FULL\n");
#endif