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

ong/id: Do not use crypto/rand #322

Merged
merged 3 commits into from
Jul 13, 2023
Merged

ong/id: Do not use crypto/rand #322

merged 3 commits into from
Jul 13, 2023

Conversation

komuw
Copy link
Owner

@komuw komuw commented Jul 13, 2023

  • It was confusing whether id.New() could be used for cryptography purposes.

@komuw komuw marked this pull request as ready for review July 13, 2023 14:52
@komuw komuw merged commit 04a0537 into main Jul 13, 2023
@komuw komuw deleted the id-new branch July 13, 2023 15:23
komuw added a commit that referenced this pull request Jul 13, 2023
- It was confusing whether id.New() could be used for cryptography purposes.
komuw added a commit that referenced this pull request Aug 7, 2023
- Initially, `id.New()` was for use in non-cryptographic usecases.
  However, I've noticed that I tend to reach for it even in cryptographic circumstances because of its ease of use.
  This PR formalizes that usecase.
- This undoes #322
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