Skip to content

Use crypto/rand in place of math/rand for token generation#257

Open
rubicae wants to merge 2 commits intoEFForg:masterfrom
rubicae:use-secure-randomness
Open

Use crypto/rand in place of math/rand for token generation#257
rubicae wants to merge 2 commits intoEFForg:masterfrom
rubicae:use-secure-randomness

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