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