Switch from ossl_rand to DRBG rand
[openssl.git] / crypto / rsa / rsa_crpt.c
index 9cd733b2c338cdefd92be218c61f8bbf2c22f9a2..2b676fd3dd4adc662b321402f1212dee8a8695ef 100644 (file)
@@ -136,16 +136,6 @@ BN_BLINDING *RSA_setup_blinding(RSA *rsa, BN_CTX *in_ctx)
     } else
         e = rsa->e;
 
-    if ((RAND_status() == 0) && rsa->d != NULL
-        && bn_get_words(rsa->d) != NULL) {
-        /*
-         * if PRNG is not properly seeded, resort to secret exponent as
-         * unpredictable seed
-         */
-        RAND_add(bn_get_words(rsa->d), bn_get_dmax(rsa->d) * sizeof(BN_ULONG),
-                 0.0);
-    }
-
     {
         BIGNUM *n = BN_new();