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

Use random_compat to provide the default source of randomness #26

Open
IMSoP opened this issue Jan 10, 2018 · 1 comment
Open

Use random_compat to provide the default source of randomness #26

IMSoP opened this issue Jan 10, 2018 · 1 comment

Comments

@IMSoP
Copy link

IMSoP commented Jan 10, 2018

Per #11, there is now a note about using a better source of randomness if possible, and a "PHP 7" generator which uses the crypto-safe random_int function.

However, if you add a composer dependency for paragonie/random_compat, you can make random_int the default source on all the versions of PHP you support, and that library will automatically polyfill it with the best source available.

@hackzilla
Copy link
Owner

interesting. I will have to read up on this library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants