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

Fixed #27635 -- Used secrets module in django.utils.crypto. #11368

Merged
merged 2 commits into from May 20, 2019

Conversation

ngnpope
Copy link
Member

@ngnpope ngnpope commented May 15, 2019

https://code.djangoproject.com/ticket/27635

This is an alternate pull request following on from #11357 (comment).

The first commit fixes the fallback in the absence of a secure pseudo-random number generator and adds a test. The second commit switches over to using the secrets module. And the (optional) third commit drops support for the fallback given that it didn't work before the first commit fixed it anyway. We could remove it as I'm not aware of any complaints that this never worked.

@felixxm felixxm self-assigned this May 20, 2019
@felixxm
Copy link
Member

felixxm commented May 20, 2019

@pope1ni Thanks!

@felixxm felixxm merged commit 1d0bab0 into django:master May 20, 2019
@ngnpope ngnpope deleted the ticket-27635 branch May 20, 2019 12:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants