forked from wolfSSL/wolfssl
Use the MAXQ1065/1080 rng when available.
This commit is contained in:
@@ -3633,7 +3633,14 @@ int wc_GenerateSeed(OS_Seed* os, byte* output, word32 sz)
|
|||||||
output[i] = (byte)rand();
|
output[i] = (byte)rand();
|
||||||
return 0;
|
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)
|
#elif defined(WOLFSSL_GETRANDOM)
|
||||||
|
|
||||||
/* getrandom() was added to the Linux kernel in version 3.17.
|
/* getrandom() was added to the Linux kernel in version 3.17.
|
||||||
|
Reference in New Issue
Block a user