#include "../crypto.h"
-#ifndef HAVE_MINGW
+#ifndef HAVE_WINDOWS
static int random_fd = -1;
void crypto_init(void) {
random_init();
+#if OPENSSL_VERSION_MAJOR < 3
ENGINE_load_builtin_engines();
+#endif
if(!RAND_status()) {
fprintf(stderr, "Not enough entropy for the PRNG!\n");