From: Ulf Möller Date: Sat, 4 Nov 2000 03:33:26 +0000 (+0000) Subject: Set the CryptoAPI randomness estimate back to 0. X-Git-Tag: rsaref~20 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=361c7f2b52a1400b55ad93b1409e9eae61f41e94;p=oweals%2Fopenssl.git Set the CryptoAPI randomness estimate back to 0. The randomness may not actually be very good (we don't know). --- 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