Browse Source

Cast size_t to DWORD on Windows

master
Thom Wiggers 5 years ago
parent
commit
ea19211d21
No known key found for this signature in database GPG Key ID: 1BB0A7CE26E363
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      common/randombytes.c

+ 1
- 1
common/randombytes.c View File

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


Loading…
Cancel
Save