Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
On Linux and BSD's, fall back to /dev/urandom if call fails
This is mostly important on Linux since if MoarVM was compiled on a kernel <= 3.17 and then the user runs MoarVM on kernel without the getrandom call, the syscall wrapper will gently return a false return value. If this happens try /dev/urandom. On the BSD's, they seem to guarantee the call will succeed, though MacOS's documentation does not specify information about this.
- Loading branch information
Showing
3 changed files
with
35 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters