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 crypto.randomBytes instead of Math.random, Log the string during test. #14

Merged
merged 2 commits into from
Jul 3, 2015
Merged

Conversation

micromaomao
Copy link
Contributor

f3b2a55: Math.random is not cryptographically secure. Since that the number one
google result for "node random string" is this, it needs to be secure.
f81f839: To avoid returning "0000000000000000" and such.

Math.random is not cryptographically secure. Since that the number one
google result for "node random string" is this, it needs to be secure.
To avoid returning "0000000000000000" and such.
@micromaomao micromaomao mentioned this pull request Jun 27, 2015
@eliaskg eliaskg merged commit f81f839 into klughammer:master Jul 3, 2015
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.

None yet

2 participants