about summary refs log tree commit diff
path: root/src/libstd/sys/windows/rand.rs
AgeCommit message (Collapse)AuthorLines
2016-02-25rand: Fix filling buffers 4 GiB or larger with OsRng::fill_bytes on WindowsOliver Middleton-7/+11
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.
2016-02-17std: restructure rand os code into sys modulesSean McArthur-0/+72