We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
rand
Rand
New
func init() { rand.New(rand.NewSource(time.Now().UnixNano())) }
The text was updated successfully, but these errors were encountered:
*: remove unnecessary rand init (#6207)
791106f
close #6134 Signed-off-by: Ryan Leung <[email protected]> Co-authored-by: Ti Chi Robot <[email protected]>
Successfully merging a pull request may close this issue.
Enhancement Task
Rand
object fromNew
is unused.rand
function is thread-safe at the cost of having a global write lock. This may cause unexpected performance problems in some places.The text was updated successfully, but these errors were encountered: