Merge pull request #6429 from embhorn/zd16184

Allow wolfSSL_RAND_Init to pass if already initialized
This commit is contained in:
JacobBarthelmeh
2023-06-06 16:23:42 -06:00
committed by GitHub

View File

@@ -35770,6 +35770,11 @@ int wolfSSL_RAND_Init(void)
ret = WOLFSSL_SUCCESS;
}
}
else {
/* GlobalRNG is already initialized */
ret = WOLFSSL_SUCCESS;
}
wc_UnLockMutex(&globalRNGMutex);
}
#endif