Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[v1.1] Detect/reject Cygwin arc4random(3) bug (re: 00b296c)
On Cygwin < 3.5, arc4random(3) does not reseed when forking, so values become predictable (identical between child and parent). https://cygwin.com/pipermail/cygwin/2024-January/255245.html src/lib/libast/features/random: - Add a portable test for this bug. - If the bug is found, emit #undef directives for the system's arc4random(3), etc. to override the iffe result, forcing the use of the bundled implementation. Thanks to @JohnoKing for the report and reproducer. Resolves: #711
- Loading branch information