Merge pull request #7231 from anhu/maxqrng

Use the MAXQ1065/1080 rng when available.
This commit is contained in:
David Garske
2024-02-16 09:43:46 -08:00
committed by GitHub

View File

@@ -3722,7 +3722,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.