diff --git a/src/include/switch_ssl.h b/src/include/switch_ssl.h
index 3f4d6d696e..f31888b57b 100644
--- a/src/include/switch_ssl.h
+++ b/src/include/switch_ssl.h
@@ -38,6 +38,7 @@
 #endif
 #include <openssl/crypto.h>
 #include <openssl/pem.h>
+#include <openssl/rand.h>
 #include <openssl/conf.h>
 #include <openssl/x509v3.h>
 #ifndef OPENSSL_NO_ENGINE