We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 612dc96 commit 76b75f8Copy full SHA for 76b75f8
src/internal.c
@@ -3351,8 +3351,10 @@ int WP11_Library_Init(void)
3351
ret = WP11_Lock_Init(&globalLock);
3352
if (ret == 0)
3353
#ifdef WOLFSSL_MAXQ10XX_CRYPTO
3354
-/* TODO: can we even do this? Has wolfCrypt even been initialized yet? */
3355
- ret = wc_InitRng_ex(&globalRandom, NULL, MAXQ_DEVICE_ID);
+ ret = wolfCrypt_Init();
+ if (ret == 0) {
3356
+ ret = wc_InitRng_ex(&globalRandom, NULL, MAXQ_DEVICE_ID);
3357
+ }
3358
#else
3359
ret = wc_InitRng(&globalRandom);
3360
#endif
0 commit comments