diff --git a/src/ssl.c b/src/ssl.c index 8e2fe0efe..0f35d47be 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -35770,6 +35770,11 @@ int wolfSSL_RAND_Init(void) ret = WOLFSSL_SUCCESS; } } + else { + /* GlobalRNG is already initialized */ + ret = WOLFSSL_SUCCESS; + } + wc_UnLockMutex(&globalRNGMutex); } #endif