fix compilation on openbsd (#3814)

the getentropy fallback is only possible on macOS, wrap it in a define
to remove it entirely on the BSDs.
1 file changed