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/rand in place of math/rand for token generation #257

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

Conversation

rubicae
Copy link

@rubicae rubicae commented Feb 14, 2020

While familiarizing myself with the code, I found that the the token generation function was using math/rand (docs for math/rand) which states For random numbers suitable for security-sensitive work, see the crypto/rand package.

Accordingly, I have switched the token generation to use crypto/rand.

@rubicae rubicae requested a review from m0namon February 14, 2020 06:15
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