mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-04 18:40:57 +03:00
ac3cc33fee
CryptGenRandom takes a DWORD (u32) for the length so it only supports writing u32::MAX bytes at a time. Casting the length from a usize caused truncation meaning the whole buffer was not always filled.