Cast size_t to DWORD on Windows

这个提交包含在:
Thom Wiggers 2019-02-27 17:06:27 +01:00
父节点 06955dfc21
当前提交 ea19211d21
找不到此签名对应的密钥
GPG 密钥 ID: 001BB0A7CE26E363

查看文件

@ -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;
}