mirror of
https://github.com/ziglang/zig.git
synced 2025-12-14 10:13:07 +00:00
std.c: define arc4random_buf() for illumos
This commit is contained in:
parent
f4ef7e8761
commit
ac3e4f4519
@ -10298,7 +10298,7 @@ pub extern "c" fn setrlimit64(resource: rlimit_resource, rlim: *const rlimit) c_
|
|||||||
|
|
||||||
pub const arc4random_buf = switch (native_os) {
|
pub const arc4random_buf = switch (native_os) {
|
||||||
.linux => if (builtin.abi.isAndroid()) private.arc4random_buf else {},
|
.linux => if (builtin.abi.isAndroid()) private.arc4random_buf else {},
|
||||||
.dragonfly, .netbsd, .freebsd, .solaris, .openbsd, .serenity, .macos, .ios, .tvos, .watchos, .visionos => private.arc4random_buf,
|
.dragonfly, .netbsd, .freebsd, .solaris, .illumos, .openbsd, .serenity, .macos, .ios, .tvos, .watchos, .visionos => private.arc4random_buf,
|
||||||
else => {},
|
else => {},
|
||||||
};
|
};
|
||||||
pub const getentropy = switch (native_os) {
|
pub const getentropy = switch (native_os) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user