Skip to content

Commit 815c290

Browse files
authored
Merge pull request #7231 from anhu/maxqrng
Use the MAXQ1065/1080 rng when available.
2 parents 92b8196 + 16c74a3 commit 815c290

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
@@ -3722,7 +3722,14 @@ int wc_GenerateSeed(OS_Seed* os, byte* output, word32 sz)
37223722
output[i] = (byte)rand();
37233723
return 0;
37243724
}
3725+
#elif defined(WOLFSSL_MAXQ108X) || defined(WOLFSSL_MAXQ1065)
37253726

3727+
int wc_GenerateSeed(OS_Seed* os, byte* output, word32 sz)
3728+
{
3729+
(void)os;
3730+
3731+
return maxq10xx_random(output, sz);
3732+
}
37263733
#elif defined(WOLFSSL_GETRANDOM)
37273734

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

0 commit comments

Comments
 (0)