Cast size_t to DWORD on Windows
Tento commit je obsažen v:
rodič
06955dfc21
revize
ea19211d21
@ -90,7 +90,7 @@ static int randombytes_win32_randombytes(void *buf, const size_t n) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
tmp = CryptGenRandom(ctx, n, (BYTE *)buf);
|
||||
tmp = CryptGenRandom(ctx, (DWORD)n, (BYTE *)buf);
|
||||
if (tmp == FALSE) {
|
||||
return -1;
|
||||
}
|
||||
|
Načítá se…
Odkázat v novém úkolu
Zablokovat Uživatele