Skip to content

Commit d0147ff

Browse files
committed
Auto merge of #3551 - RalfJung:getentropy, r=RalfJung
macos: use getentropy from libc This has been added in the mean time.
2 parents 14e4910 + 5e30f0f commit d0147ff

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

tests/pass-dep/shims/libc-getentropy.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
11
//@ignore-target-windows: no libc
22

3-
// on macOS this is not in the `libc` crate.
4-
#[cfg(target_os = "macos")]
5-
extern "C" {
6-
fn getentropy(bytes: *mut libc::c_void, count: libc::size_t) -> libc::c_int;
7-
}
8-
9-
#[cfg(not(target_os = "macos"))]
103
use libc::getentropy;
114

125
fn main() {

0 commit comments

Comments
 (0)