1
1
mirror of https://github.com/henrydcase/pqc.git synced 2024-11-22 15:39:07 +00:00

Cast size_t to DWORD on Windows

This commit is contained in:
Thom Wiggers 2019-02-27 17:06:27 +01:00
parent 06955dfc21
commit ea19211d21
No known key found for this signature in database
GPG Key ID: 001BB0A7CE26E363

View File

@ -90,7 +90,7 @@ static int randombytes_win32_randombytes(void *buf, const size_t n) {
return -1; return -1;
} }
tmp = CryptGenRandom(ctx, n, (BYTE *)buf); tmp = CryptGenRandom(ctx, (DWORD)n, (BYTE *)buf);
if (tmp == FALSE) { if (tmp == FALSE) {
return -1; return -1;
} }