bind9/lib/isc/include
Ondřej Surý 97487d1abb Fix assertion failure from arc4random_uniform with invalid limit
When the arc4random_uniform() is called on NetBSD with upper_bound that
makes no sense statistically (0 or 1), the call crashes the calling
program.  Fix this by returning 0 when upper bound is < 2 as does Linux,
FreeBSD and NetBSD.  (Hint: System CSPRNG should never crash.)

(cherry picked from commit 871bce312b)
2025-10-24 20:23:32 +00:00
..
isc Fix assertion failure from arc4random_uniform with invalid limit 2025-10-24 20:23:32 +00:00
.clang-format Add separate .clang-format files for headers 2020-02-14 09:31:05 +01:00