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

proposal: math/rand: add InsecureRand #59629

Closed
BobDu opened this issue Apr 14, 2023 · 1 comment
Closed

proposal: math/rand: add InsecureRand #59629

BobDu opened this issue Apr 14, 2023 · 1 comment

Comments

@BobDu
Copy link

BobDu commented Apr 14, 2023

#20661
now, we only deprecate math/rand.Read , in initial proposal suggest add a math/rand.InsecureRand

in many cases (like only create a random string in internal system for idempotent), we need math/rand.
So, we should give developers a choice.

@BobDu BobDu added the Proposal label Apr 14, 2023
@gopherbot gopherbot added this to the Proposal milestone Apr 14, 2023
@seankhliao
Copy link
Member

Only the global function is deprecated, we're not going to add back a new global, whatever the name is.
You can create your own package level one if you need.

@seankhliao seankhliao closed this as not planned Won't fix, can't repro, duplicate, stale Apr 14, 2023
@golang golang locked and limited conversation to collaborators Apr 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants