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

Fix: initialise PRNG properly #91

Merged
merged 1 commit into from
Sep 27, 2018
Merged

Fix: initialise PRNG properly #91

merged 1 commit into from
Sep 27, 2018

Conversation

mcpat
Copy link
Contributor

@mcpat mcpat commented Sep 27, 2018

When configuring the library through rc_config_init, the PRNG is not
initalised. On platforms with no /dev/urandom this might be a serious
security issue because passwords are not properly protected anymore.

So this commit introduces a new utility function rc_random which
ensures, that the PRNG is initialised before the first call to
random.

This commit fixes #82

Signed-off-by: Marcel Patzlaff m.patzlaff@pilz.de

When configuring the library through rc_config_init, the PRNG is not
initalised. On platforms with no /dev/urandom this might be a serious
security issue because passwords are not properly protected anymore.

So this commit introduces a new utility function rc_random which
ensures, that the PRNG is initialised before the first call to
random.

This commit fixes #82

Signed-off-by: Marcel Patzlaff <m.patzlaff@pilz.de>
@alandekok alandekok merged commit 7b7473a into FreeRADIUS:master Sep 27, 2018
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.

srandom() not called
2 participants