Skip to content

Commit

Permalink
provide getentropy(2) instead of SYS_entropy
Browse files Browse the repository at this point in the history
SYS_entropy is internal and may more easily change than getentropy(2).
  • Loading branch information
semarie committed Dec 22, 2015
1 parent e356b72 commit b456542
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/unix/bsd/openbsdlike/openbsd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -218,9 +218,6 @@ pub const TMP_MAX : ::c_uint = 0x7fffffff;

pub const NI_MAXHOST: ::size_t = 256;

// syscall numbers
pub const SYS_getentropy: ::c_int = 7;

extern {
pub fn getnameinfo(sa: *const ::sockaddr,
salen: ::socklen_t,
Expand All @@ -238,4 +235,5 @@ extern {
newp: *mut ::c_void,
newlen: ::size_t)
-> ::c_int;
pub fn getentropy(buf: *mut ::c_void, buflen: ::size_t) -> ::c_int;
}

0 comments on commit b456542

Please sign in to comment.