Clean up references to FIPS
[openssl.git] / crypto / rand / md_rand.c
index 88820bbb917674e18644d308d862c6ec30d612e2..8cbfae170f4ab700141d220ce89fe29efce61877 100644 (file)
 
 #include <internal/thread_once.h>
 
-#ifdef OPENSSL_FIPS
-# include <openssl/fips.h>
-#endif
-
 #if defined(BN_DEBUG) || defined(FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION)
 # define PREDICT
 #endif
@@ -126,6 +122,11 @@ static int rand_add(const void *buf, int num, double add)
     if (!num)
         return 1;
 
+#ifdef PREDICT
+    if (rand_predictable)
+        return 1;
+#endif
+
     /*
      * (Based on the rand(3) manpage)
      *