Skip to content

Commit

Permalink
Auto merge of #3230 - nikarh:vita-rand, r=JohnTitor
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bors committed May 1, 2023
2 parents 0485ee3 + 0b2ed16 commit 66e988b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/unix/newlib/vita/mod.rs
Expand Up @@ -168,6 +168,8 @@ extern "C" {
) -> ::c_int;

pub fn pthread_getprocessorid_np() -> ::c_int;

pub fn getentropy(buf: *mut ::c_void, buflen: ::size_t) -> ::c_int;
}

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

0 comments on commit 66e988b

Please sign in to comment.