Use the MAXQ1065/1080 rng when available.

This commit is contained in:
Anthony Hu
2024-02-08 16:10:36 -05:00
parent 14830d0e09
commit 16c74a31b2

View File

@ -3633,7 +3633,14 @@ int wc_GenerateSeed(OS_Seed* os, byte* output, word32 sz)
output[i] = (byte)rand();
return 0;
}
#elif defined(WOLFSSL_MAXQ108X) || defined(WOLFSSL_MAXQ1065)
int wc_GenerateSeed(OS_Seed* os, byte* output, word32 sz)
{
(void)os;
return maxq10xx_random(output, sz);
}
#elif defined(WOLFSSL_GETRANDOM)
/* getrandom() was added to the Linux kernel in version 3.17.