macos: use getentropy from libc
This commit is contained in:
parent
38715f714f
commit
07a517a6ba
1 changed files with 0 additions and 7 deletions
|
|
@ -1,12 +1,5 @@
|
|||
//@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;
|
||||
|
||||
fn main() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue