Auto merge of #3551 - RalfJung:getentropy, r=RalfJung
macos: use getentropy from libc This has been added in the mean time.
This commit is contained in:
commit
705d48cff9
@ -1,12 +1,5 @@
|
|||||||
//@ignore-target-windows: no libc
|
//@ignore-target-windows: no libc
|
||||||
|
|
||||||
// on macOS this is not in the `libc` crate.
|
|
||||||
#[cfg(target_os = "macos")]
|
|
||||||
extern "C" {
|
|
||||||
fn getentropy(bytes: *mut libc::c_void, count: libc::size_t) -> libc::c_int;
|
|
||||||
}
|
|
||||||
|
|
||||||
#[cfg(not(target_os = "macos"))]
|
|
||||||
use libc::getentropy;
|
use libc::getentropy;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
|
Loading…
Reference in New Issue
Block a user