# glibc headers: arc4random\* functions added in glibc 2.36 · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/a31fe8aa3ed4868fb10000c1e3eeaa094488fc94)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: a31fe8aa3ed4868fb10000c1e3eeaa094488fc94

Requested commit: a31fe8aa3ed4868fb10000c1e3eeaa094488fc94

Commit: a31fe8aa3ed4868fb10000c1e3eeaa094488fc94

Tree: 64eadd24cae7bd3a2671b9c0451eb9a91d3e3982

Author: Pat Tullmann

Committer: Andrew Kelley

## Message

```
glibc headers: arc4random* functions added in glibc 2.36

Here's the glibc v2.36 announcment noting the addition of arc4random,
arc4random_buf and arc4random_uniform:

  https://sourceware.org/git/?p=glibc.git;a=blob;f=NEWS;h=8420a65cd06874ee09518366b8fba746a557212a;hb=6f4e0fcfa2d2b0915816a3a3a1d48b4763a7dee2

Tested with the testcase from the bug.  I get a compile-time error when
building against older glibc (instead of a linker error), and no errors
(as before) when compiling against v2.36 or later.  And the glibc_compat
regression tests pass.

Fix #20426

```

## Parents

- [5e3bad3556435663fa9220390248a5ed4f75be47](https://git.cafe/gitcafe/zig/commit/5e3bad3556435663fa9220390248a5ed4f75be47?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/a31fe8aa3ed4868fb10000c1e3eeaa094488fc94?format=markdown)
