Use rdrand as additional entropy source.
[openssl.git] / crypto / rand / rand_lib.c
index e8957dbb306cc6dbc7d673f7fa0bcfa787559d1a..4aa6486c8102c9e07d64cfd29ca57c76db0ba9ff 100644 (file)
@@ -227,6 +227,7 @@ static size_t drbg_get_adin(DRBG_CTX *ctx, unsigned char **pout)
        static unsigned char buf[16];
        static unsigned long counter;
        FIPS_get_timevec(buf, &counter);
+       rand_hw_xor(buf, sizeof(buf));
        *pout = buf;
        return sizeof(buf);
        }