rust/src/bootstrap/bin
bors 758dc9af50 Auto merge of #60156 - RalfJung:macos-rand, r=oli-obk,alexcrichton
use SecRandomCopyBytes on macOS in Miri

This is a hack to fix https://github.com/rust-lang/miri/issues/686: on macOS, rustc will open `/dev/urandom` to initialize a `HashMap`. That's quite hard to emulate properly in Miri without a full-blown implementation of file descriptors.  However, Miri needs an implementation of `SecRandomCopyBytes` anyway to support [getrandom](https://crates.io/crates/getrandom), so using it here should work just as well.

This will only have an effect when libstd is compiled specifically for Miri, but that will generally be the case when people use `cargo miri`.

This is clearly a hack, so I am opening this to start a discussion about whether we are okay with such a hack or not.

Cc @oli-obk
2019-05-02 07:38:36 +00:00
..
llvm-config-wrapper.rs Remove licenses 2018-12-25 21:08:33 -07:00
main.rs Remove some unnecessary 'extern crate' 2019-02-25 00:40:34 +09:00
rustc.rs Auto merge of #60156 - RalfJung:macos-rand, r=oli-obk,alexcrichton 2019-05-02 07:38:36 +00:00
rustdoc.rs Handle RUSTDOC_RESOURCE_SUFFIX env variable for rustdoc build 2019-03-26 22:29:30 +01:00
sccache-plus-cl.rs Remove some unnecessary 'extern crate' 2019-02-25 00:40:34 +09:00