drbg_bytes: remove check for DRBG_UNINITIALIZED state
[oweals/openssl.git] / crypto / rand / drbg_lib.c
index cb2f9e8d924a21e9492372d3ca9c17d79195eb1b..974e3bbd11f6108f21cc53970bef00d850de5ea7 100644 (file)
@@ -772,9 +772,6 @@ static int drbg_bytes(unsigned char *out, int count)
         return 0;
 
     CRYPTO_THREAD_write_lock(drbg->lock);
-    if (drbg->state == DRBG_UNINITIALISED)
-        goto err;
-
     for ( ; count > 0; count -= chunk, out += chunk) {
         chunk = count;
         if (chunk > drbg->max_request)