ultravideo / uvgRTP

An open-source library for RTP/SRTP media delivery
BSD 2-Clause "Simplified" License
325 stars 92 forks source link

system: add compilation support for arc4random() if getrandom() isn't available. #158

Closed devenvexe closed 2 years ago

devenvexe commented 2 years ago

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.

jrsnen commented 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?

devenvexe commented 2 years ago

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.