Skip to content

Commit 66e988b

Browse files
committed
Auto merge of #3230 - nikarh:vita-rand, r=JohnTitor
Added getentropy to vita target This is a late addition to #3209. This definition is required in order to implement random in std correctly. As the previous PR, getentropy is a standard C function, should be implemented by newlib provider, and is not Sony's intellectual property.
2 parents 0485ee3 + 0b2ed16 commit 66e988b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/unix/newlib/vita/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,8 @@ extern "C" {
168168
) -> ::c_int;
169169

170170
pub fn pthread_getprocessorid_np() -> ::c_int;
171+
172+
pub fn getentropy(buf: *mut ::c_void, buflen: ::size_t) -> ::c_int;
171173
}
172174

173175
pub use crate::unix::newlib::generic::{sigset_t, stat};

0 commit comments

Comments
 (0)