]> git.ipfire.org Git - thirdparty/dhcpcd.git/commit
compat: update arc4random() to newer chacha20 based version from OpenBSD (#227)
authorTobias Heider <tobhe@users.noreply.github.com>
Mon, 4 Sep 2023 13:53:44 +0000 (15:53 +0200)
committerGitHub <noreply@github.com>
Mon, 4 Sep 2023 13:53:44 +0000 (14:53 +0100)
commit837d09e34c487edaa92aa2ae71a630d84c927f8e
tree727608ed9b269c7a3b6e0893824e73558559b102
parentda3c493d2c54982fa401cfc5f16b03b6e6e4232f
compat: update arc4random() to newer chacha20 based version from OpenBSD (#227)

* compat: update arc4random() to newer chacha20 based version from OpenBSD

* arc4random: keep fd after first call to arc4random

privsep + chroot doesn't allow us to reopen /dev/urandom in
an unpriviledged process so we open the fd once and then
hold onto it.
compat/arc4random.c
compat/arc4random.h
compat/chacha_private.h [new file with mode: 0644]