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

The default PRNG function may be broken. #3

Open
matthewmummert5 opened this issue Apr 1, 2016 · 0 comments
Open

The default PRNG function may be broken. #3

matthewmummert5 opened this issue Apr 1, 2016 · 0 comments

Comments

@matthewmummert5
Copy link

According to the PHP website, using rand() is not cryptographically secure.
http://php.net/manual/en/function.rand.php

This is because the rand() function is designed as a uniform distribution random function. I recommend you use a Gaussian distribution random function instead. Consult Bruce Schneier for safe parameters for the mean, and standard deviation of your Gaussian function.

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

No branches or pull requests

1 participant