Set the CryptoAPI randomness estimate back to 0.

The randomness may not actually be very good (we don't know).
This commit is contained in:
Ulf Möller 2000-11-04 03:33:26 +00:00
parent 9f6fe8dbe7
commit 361c7f2b52

View 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