-
Notifications
You must be signed in to change notification settings - Fork 18k
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
math/rand: use of Read is racy #16308
Comments
/cc @adg @ianlancetaylor @randall77 The recent commit 8d966ba for #16124 has no locks over the We could use a sync.Mutex or atomic instructions to update those fields. |
CL https://golang.org/cl/24839 mentions this issue. |
CL https://golang.org/cl/24852 mentions this issue. |
CL https://golang.org/cl/24857 mentions this issue. |
A follow-on to https://golang.org/cl/24852 that mentions the documentation clarifications. Updates #16308. Change-Id: Ic2a6e1d4938d74352f93a6649021fb610efbfcd0 Reviewed-on: https://go-review.googlesource.com/24857 Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Joe Tsai <thebrokentoaster@gmail.com> Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
Please answer these questions before submitting your issue. Thanks!
go version
)?1.7rc1
go env
)?linux amd64
Ran a large concurrent unit test.
Bunnies
I can confirm it does not happen on 1.6, at least with my runs.
The text was updated successfully, but these errors were encountered: