Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add randombytes for gnu linux. #4

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

sven-hm
Copy link

@sven-hm sven-hm commented Mar 16, 2021

This PR adds randombytes for gnu linux systems.

getrandom will be called if available (i.e. if glibc is not older than version 2.25). Otherwise random values will be read from /dev/urandom. If this fails the whole program will exit with a non-zero return value.

Additional information:

@sven-hm sven-hm requested a review from gruenwaldi March 16, 2021 12:35
@sven-hm sven-hm requested a review from a user March 17, 2021 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant