Closed devenvexe closed 2 years ago
Hi! #142 already fixed macOS build, but you used a different method for random. Can you update this PR to be compatible with previous PR if this is still useful?
Thanks. I'll close this given the merged solution is reasonable, and I don't have an explicit goal of trying to get non-macOS BSD-ish distros to work.
Detect and use arc4random() if getrandom() isn't available. This is a PR that takes a step closer to supporting BSD-ish *nix, like macOS.