authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-02-11 15:29:51-08:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-02-11 15:29:51-08:00
log13f31bb3c319813cbc3ed461ad9a97ec1c379f11
tree48be0ed08beaab06d74c630574ebe0407447af92
parentb600b6e5e08bc443ef9742b36d51c95715c8150a

std/c: glibc has supported arc4random_buf since 2.36


1 files changed, 4 insertions(+), 1 deletions(-)

lib/std/c.zig+4-1
......@@ -10357,7 +10357,10 @@ pub extern "c" fn sendfile64(out_fd: fd_t, in_fd: fd_t, offset: ?*i64, count: us
1035710357pub extern "c" fn setrlimit64(resource: rlimit_resource, rlim: *const rlimit) c_int;
1035810358
1035910359pub const arc4random_buf = switch (native_os) {
10360 .linux => if (builtin.abi.isAndroid()) private.arc4random_buf else {},
10360 .linux => if (builtin.abi.isAndroid() or
10361 (builtin.abi.isGnu() and versionCheck(.{ .major = 2, .minor = 36, .patch = 0 })))
10362 private.arc4random_buf
10363 else {},
1036110364 .dragonfly, .netbsd, .freebsd, .illumos, .openbsd, .serenity, .driverkit, .ios, .maccatalyst, .macos, .tvos, .visionos, .watchos => private.arc4random_buf,
1036210365 else => {},
1036310366};