diff options
| author | bors <bors@rust-lang.org> | 2017-11-14 13:46:19 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2017-11-14 13:46:19 +0000 |
| commit | 9cd994cdc192e09a4b1028e828d6c3343364f37f (patch) | |
| tree | 8e7f40611db1f4d52e484b80ae150aef836094ef /src/rustllvm/RustWrapper.cpp | |
| parent | 24840dab0bef0047beb428e1c15e9a851f732dcc (diff) | |
| parent | 8f2dfd16dc4bb625bad6da1d38d2b7c11b9e1738 (diff) | |
| download | rust-9cd994cdc192e09a4b1028e828d6c3343364f37f.tar.gz rust-9cd994cdc192e09a4b1028e828d6c3343364f37f.zip | |
Auto merge of #45896 - malbarbo:use-libc-const, r=alexcrichton
Use getrandom syscall for all Linux and Android targets. I suppose we can use it in all Linux and Android targets. In function `is_getrandom_available` is checked if the syscall is available (getrandom syscall was add in version 3.17 of Linux kernel), if the syscall is not available `fill_bytes` fallback to reading from `/dev/urandom`. Update libc to include getrandom related constants.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
