You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If that is not enough, you should clarify why. As far as I can see, as long as you can obtain any amount of random bytes, you can do anything from there.
mvdan
added
the
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
label
Jun 6, 2020
Thanks for your response. Yes, there is rand.Read but you don't have control over the output characters. Sometimes you need to generate a random string based on a given character set.
I think of something like this: rand.String("AZXEgewdd1234$#!@*&")
That's a higher level abstraction you could build on top of random bytes or integers. There's really no reason to put it in the package API. Different people will want different kinds of "random strings" too, so I also doubt that a single API would be universally useful.
I think it would be nice if there is a random string generator in the standard library.
It can be in math/rand package.
The text was updated successfully, but these errors were encountered: