forked from briansmith/ring
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue briansmith#316 - Replace
/dev/urandom
usage on *BSD
Now OpenBSD and FreeBSD utilizes `arc4rand_buf()` function in their C stdlib. - Implement GFp_sysrand_chunk() in sysrand.c for OpenBSD and FreeBSD. - On OpenBSD and FreeBSD, mk/ring.mk now uses `-D_BSD_SOURCE` in `CPPFLAGS` instead of `-D_XOPEN_SOURCE=700`. TODOs: - Update docs. - Remove debug print. - Ensure FreeBSD's arc4rand_buf() is as safe as OpenBSD's. I agree to license my contributions to each file under the terms given at the top of each file I changed.
- Loading branch information
1 parent
4102ae7
commit 321d710
Showing
4 changed files
with
61 additions
and
13 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
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