This website works better with JavaScript.
Home
Explore
Help
Sign In
kris
/
pqc
Watch
1
Star
1
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
Cast size_t to DWORD on Windows
master
Thom Wiggers
5 years ago
parent
06955dfc21
commit
ea19211d21
No known key found for this signature in database
GPG Key ID:
1BB0A7CE26E363
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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;
}
Write
Preview
Loading…
Cancel
Save