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 secrets to generate the discriminator #736

Merged
merged 1 commit into from
Jun 7, 2024

Conversation

agners
Copy link
Collaborator

@agners agners commented Jun 6, 2024

Use the secrets module which is cryptographically secure to generate the discriminator. The discriminator probably doesn't need to be cryptographically safe, but it also doesn't hurt and gets rid of a QA exception.

Use the secrets module which is cryptographically secure to generate
the discriminator. The discriminator probably doesn't need to be
cryptographically safe, but it also doesn't hurt and gets rid of a
QA exception.
@agners
Copy link
Collaborator Author

agners commented Jun 6, 2024

I am using the secrets module also in #709, where I need to generate a passcode. The passcode should be cryptographically safe, so I think it is better to use the same module everywhere.

@agners agners added the maintenance Code (quality) improvement or small enhancement which not a new feature label Jun 6, 2024
@agners agners merged commit 474cb47 into main Jun 7, 2024
4 checks passed
@agners agners deleted the use-secrets-for-discriminator branch June 7, 2024 13:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Code (quality) improvement or small enhancement which not a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants