diff options
| author | klutzy <klutzytheklutzy@gmail.com> | 2014-11-06 03:53:27 +0900 |
|---|---|---|
| committer | klutzy <klutzytheklutzy@gmail.com> | 2014-11-06 22:01:31 +0900 |
| commit | fdf5195f58971337ad46a9996613660279966120 (patch) | |
| tree | 7d4f7e6dffb59f7c8b9a2243b55bebfb258189c8 /src/rustllvm/RustWrapper.cpp | |
| parent | 14cd5c590e2157f153ed38625011e7fc3c83659c (diff) | |
| download | rust-fdf5195f58971337ad46a9996613660279966120.tar.gz rust-fdf5195f58971337ad46a9996613660279966120.zip | |
std::rand::OsRng: Use `getrandom` syscall on Linux
`getrandom(2)` system call [1] has been added on Linux 3.17. This patch makes `OsRng` use `getrandom` if available, and use traditional `/dev/urandom` fallback if not. [1]: https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=c6e9d6f38894798696f23c8084ca7edbf16ee895
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
