From: Ian Lance Taylor Date: Mon, 11 Jul 2016 04:47:56 +0000 (-0700) Subject: doc/go1.7.html: no concurrent calls of math/rand methods X-Git-Tag: go1.7rc3~1^2~29 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=38de5b71f274ff93581a302b2f3ec4b9937afa51;p=gostls13.git doc/go1.7.html: no concurrent calls of math/rand methods 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 TryBot-Result: Gobot Gobot Reviewed-by: Joe Tsai Reviewed-by: Josh Bleecher Snyder --- diff --git a/doc/go1.7.html b/doc/go1.7.html index 2a2675e98a..6605e4b366 100644 --- a/doc/go1.7.html +++ b/doc/go1.7.html @@ -793,6 +793,16 @@ The now produce a pseudo-random stream of bytes that is consistent and not dependent on the size of the input buffer.

+ +

+The documentation clarifies that +Rand's Seed +and Read methods +are not safe to call concurrently, though the global +functions Seed +and Read are (and have +always been) safe. +