]> git.ipfire.org Git - thirdparty/bird.git/commit
sysdep: Add wrapper to get random bytes
authorToke Høiland-Jørgensen <toke@toke.dk>
Thu, 1 Apr 2021 17:20:13 +0000 (19:20 +0200)
committerOndrej Zajicek (work) <santiago@crfreenet.org>
Sun, 6 Jun 2021 14:26:06 +0000 (16:26 +0200)
commitc48ebde5ce6db3da8cd571d213d1a1f265de8983
treee465e1372465923b1123fd3957218eae84432868
parent91d04583891f7a6f4aee612cf3f143cc84a73991
sysdep: Add wrapper to get random bytes

Add a wrapper function in sysdep to get random bytes, and required checks
in configure.ac to select how to do it. The configure script tries, in
order, getrandom(), getentropy() and reading from /dev/urandom.
conf/conf.c
configure.ac
lib/birdlib.h
sysdep/unix/main.c
sysdep/unix/random.c