]> git.ipfire.org Git - thirdparty/dhcpcd.git/commit
compat: use OpenSSL RAND_priv_bytes() for entropy (#248)
authorTobias Heider <tobias.heider@canonical.com>
Fri, 29 Sep 2023 07:57:41 +0000 (09:57 +0200)
committerGitHub <noreply@github.com>
Fri, 29 Sep 2023 07:57:41 +0000 (08:57 +0100)
commitcd34035851d9a9cf3a4bc4ffeb554749ebd68720
treecc3f7c38b7e45cbe89d58afd3a21a6a473278046
parentf2bc729e555e753625e98a705ea2aac5f8dc3cb3
compat: use OpenSSL RAND_priv_bytes() for entropy (#248)

* compat: use OpenSSL RAND_priv_bytes() for entropy

Use OpenSSL random number generator to seed arc4random() if available,
if it fails fall back to /dev/urandom.

* tests: link eloop-bench against LDADD lib

arc4random might depend on libcrypto so we need to link it.
compat/arc4random.c
tests/eloop-bench/Makefile