Use RAND_METHOD for implementing RAND_status.
[openssl.git] / crypto / rand / rand_lib.c
index b09a300c46e5bb84353ab6de01a0cc6b24a88e79..7da74aab0ef3364b58c31a4593818225ccdc1e41 100644 (file)
@@ -108,3 +108,10 @@ int RAND_pseudo_bytes(unsigned char *buf, int num)
                return rand_meth->pseudorand(buf,num);
        return(-1);
        }
+
+int RAND_status(void)
+       {
+       if (rand_meth != NULL)
+               return rand_meth->status();
+       return 0;
+       }