]> git.ipfire.org Git - thirdparty/bind9.git/commit
Use arc4random for CSPRNG when available
authorOndřej Surý <ondrej@isc.org>
Mon, 25 Aug 2025 17:02:54 +0000 (19:02 +0200)
committerMichał Kępień <michal@isc.org>
Thu, 2 Oct 2025 11:26:07 +0000 (13:26 +0200)
commit4db9e5d90e290f77718f8e1e0a64c3e1a8fe34f9
tree664d9a10b1376a786c545735916471b6329096e4
parentcffcab9d5f3e709002f331b72498fcc229786ae2
Use arc4random for CSPRNG when available

Use arc4random on platforms where available.  arc4random() provides high
quality cryptographically-secure pseudo-random numbers and is generally
recommended for application use.

The uv_random() call unfortunately uses getentropy() on platforms like
MacOS, OpenBSD or NetBSD which is not recommended for application use.
lib/isc/entropy.c [deleted file]
lib/isc/hash.c
lib/isc/hashmap.c
lib/isc/include/isc/entropy.h [deleted file]
lib/isc/include/isc/nonce.h
lib/isc/include/isc/random.h
lib/isc/meson.build
lib/isc/nonce.c [deleted file]
lib/isc/random.c
meson.build