From 16c74a31b2a8779057a1796959d3e28935df9ec4 Mon Sep 17 00:00:00 2001 From: Anthony Hu Date: Thu, 8 Feb 2024 16:10:36 -0500 Subject: [PATCH] Use the MAXQ1065/1080 rng when available. --- wolfcrypt/src/random.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/wolfcrypt/src/random.c b/wolfcrypt/src/random.c index 518733419..d69099f3e 100644 --- a/wolfcrypt/src/random.c +++ b/wolfcrypt/src/random.c @@ -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.