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 163cee02c72829b6fd8081726900a96ca3c6e68a..abefc5eadbe85fd0c051ecfd4cb322f870512a4f 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