Set the CryptoAPI randomness estimate back to 0.
authorUlf Möller <ulf@openssl.org>
Sat, 4 Nov 2000 03:33:26 +0000 (03:33 +0000)
committerUlf Möller <ulf@openssl.org>
Sat, 4 Nov 2000 03:33:26 +0000 (03:33 +0000)
The randomness may not actually be very good (we don't know).

crypto/rand/rand_win.c

index 163cee0..abefc5e 100644 (file)
@@ -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