We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9db2077 + 3fbbc7c commit 32f3f7dCopy full SHA for 32f3f7d
1 file changed
wolfcrypt/src/port/liboqs/liboqs.c
@@ -50,7 +50,7 @@ static int liboqs_init = 0;
50
51
static void wolfSSL_liboqsGetRandomData(uint8_t* buffer, size_t numOfBytes)
52
{
53
- int ret = wc_RNG_GenerateBlock(liboqsCurrentRNG, buffer, numOfBytes);
+ int ret = wc_RNG_GenerateBlock(liboqsCurrentRNG, buffer, (word32)numOfBytes);
54
if (ret != 0) {
55
// ToDo: liboqs exits programm if RNG fails, not sure what to do here
56
}
0 commit comments