Skip to content

Commit 16c74a3

Browse files
committed
Use the MAXQ1065/1080 rng when available.
1 parent 14830d0 commit 16c74a3

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

wolfcrypt/src/random.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3633,7 +3633,14 @@ int wc_GenerateSeed(OS_Seed* os, byte* output, word32 sz)
36333633
output[i] = (byte)rand();
36343634
return 0;
36353635
}
3636+
#elif defined(WOLFSSL_MAXQ108X) || defined(WOLFSSL_MAXQ1065)
36363637

3638+
int wc_GenerateSeed(OS_Seed* os, byte* output, word32 sz)
3639+
{
3640+
(void)os;
3641+
3642+
return maxq10xx_random(output, sz);
3643+
}
36373644
#elif defined(WOLFSSL_GETRANDOM)
36383645

36393646
/* getrandom() was added to the Linux kernel in version 3.17.

0 commit comments

Comments
 (0)