Skip to content

Commit 8d3dfa9

Browse files
committed
Auto merge of #2387 - erickt:remove-cprng, r=JohnTitor
Revert "fuchsia add getrandom equivalent zx_cprng_draw." This reverts commit 5b8616e. I'm on the Fuchsia Rust team, and we would like this reverted for a few reasons. First, these functions are not actually exposed in our `libc`. Instead, it comes from our `libzircon` library. Second, we haven't solidified these APIs, nor have we committed to exactly which library to expose them from. Instead, we've created https://crates.io/crates/fuchsia-cprng to expose this functionality. This lets us more easily track our downstream users, and help them update if we ever make a breaking change. cc `@devnexen` and `@anp`
2 parents 92bf08e + 1ab2b29 commit 8d3dfa9

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

libc-test/semver/fuchsia.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1384,6 +1384,3 @@ utimensat
13841384
vhangup
13851385
vmsplice
13861386
waitid
1387-
zx_cprng_add_entropy
1388-
zx_cprng_draw
1389-
zx_status_t

src/fuchsia/mod.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,6 @@ pub type rlim_t = ::c_ulonglong;
8989
pub type c_long = i64;
9090
pub type c_ulong = u64;
9191

92-
pub type zx_status_t = i32;
93-
9492
// FIXME: why are these uninhabited types? that seems... wrong?
9593
// Presumably these should be `()` or an `extern type` (when that stabilizes).
9694
#[cfg_attr(feature = "extra_traits", derive(Debug))]
@@ -4231,9 +4229,6 @@ extern "C" {
42314229
>,
42324230
data: *mut ::c_void,
42334231
) -> ::c_int;
4234-
4235-
pub fn zx_cprng_draw(buffer: *mut ::c_void, buffer_size: ::size_t);
4236-
pub fn zx_cprng_add_entropy(buffer: *const ::c_void, buffer_size: ::size_t) -> ::zx_status_t;
42374232
}
42384233

42394234
cfg_if! {

0 commit comments

Comments
 (0)