diff options
| author | bors <bors@rust-lang.org> | 2016-02-26 22:21:59 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2016-02-26 22:21:59 +0000 |
| commit | 98a8a71236453a16f0048a65506f4d0bea042ca5 (patch) | |
| tree | 8330302b253e4f26f4d5ec8f942bd5157e3cdaaa /src/libstd/sys/unix/stack_overflow.rs | |
| parent | 64b4b6d6c6ab98261ebf4349bf7064d69b117964 (diff) | |
| parent | ac3cc33fee5e0f576cc9f04f7df40cd5d968be43 (diff) | |
| download | rust-98a8a71236453a16f0048a65506f4d0bea042ca5.tar.gz rust-98a8a71236453a16f0048a65506f4d0bea042ca5.zip | |
Auto merge of #31876 - ollie27:win_fill_bytes, r=brson
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. cc #31841 This is the same as rust-lang-nursery/rand#99. I think it's a good idea to keep the implementations in sync. r? @alexcrichton
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions
