dsprenkels / randombytes

A portable C library for generating cypto-secure random bytes
MIT License
96 stars 37 forks source link

CryptGenRandom expects DWORD #38

Closed dsprenkels closed 2 years ago

dsprenkels commented 2 years ago

Upstream copy of https://github.com/PQClean/PQClean/pull/438

dsprenkels commented 2 years ago

This is probably as easy as directly applying https://github.com/PQClean/PQClean/commit/45c8d1e073367cb4b991a1d690dbdcd8bbf4ed46.diff

thomwiggers commented 2 years ago

Maybe you want to actually do some error handling; the cast I added might truncate.

thomwiggers commented 2 years ago

Fixed by #40