diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2017-10-18 11:43:17 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2017-10-18 11:48:20 -0700 |
| commit | 55c01736cbabc8e4541b814ae8149173b8028651 (patch) | |
| tree | 9525eecc07ab0adde3de1e0dc87ae463cc2d41a5 /src/libstd/sys/unix/stack_overflow.rs | |
| parent | 7a4f39453cfbeab1c2220331f2eae8938165c964 (diff) | |
| download | rust-55c01736cbabc8e4541b814ae8149173b8028651.tar.gz rust-55c01736cbabc8e4541b814ae8149173b8028651.zip | |
std: Update randomness implementation on Windows
This commit updates the OS random number generator on Windows to match the upstream implementation in the `rand` crate. First proposed in rust-lang-nursery/rand#111 this implementation uses a "private" API of `RtlGenRandom`. Despite the [documentation][dox] indicating this is a private function its widespread use in Chromium and Firefox as well as [comments] from Microsoft internally indicates that it's highly unlikely to break. Another motivation for switching this is to also attempt to make progress on #44911. It may be the case that this function succeeds while the previous implementation may fail in "weird" scenarios. [dox]: https://msdn.microsoft.com/en-us/library/windows/desktop/aa387694(v=vs.85).aspx [comments]: https://github.com/rust-lang-nursery/rand/issues/111#issuecomment-316140155
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions
