1
0
mirror of https://gitlab.labs.nic.cz/labs/bird.git synced 2024-05-11 16:54:54 +00:00

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.
This commit is contained in:
Toke Høiland-Jørgensen
2021-04-01 19:20:13 +02:00
committed by Ondrej Zajicek (work)
parent 91d0458389
commit c48ebde5ce
5 changed files with 97 additions and 0 deletions

View File

@@ -867,6 +867,7 @@ main(int argc, char **argv)
parse_args(argc, argv);
log_switch(1, NULL, NULL);
random_init();
net_init();
resource_init();
timer_init();