about summary refs log tree commit diff
path: root/src/libstd/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2017-10-21 04:33:32 +0000
committerbors <bors@rust-lang.org>2017-10-21 04:33:32 +0000
commitcc03782b93f210a23ed792800b08c1ebad0a8820 (patch)
tree5f36bd300ae3d369f2ec6845efdc46178f9af137 /src/libstd/sys/unix/stack_overflow.rs
parent6a136f678302afd6498f69b3858ed6ae1ba6d602 (diff)
parent55c01736cbabc8e4541b814ae8149173b8028651 (diff)
downloadrust-cc03782b93f210a23ed792800b08c1ebad0a8820.tar.gz
rust-cc03782b93f210a23ed792800b08c1ebad0a8820.zip
Auto merge of #45370 - alexcrichton:update-windows-rand, r=sfackler
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