From 38de5b71f274ff93581a302b2f3ec4b9937afa51 Mon Sep 17 00:00:00 2001
From: Ian Lance Taylor
Date: Sun, 10 Jul 2016 21:47:56 -0700
Subject: [PATCH] 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
---
doc/go1.7.html | 10 ++++++++++
1 file changed, 10 insertions(+)
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.
+
--
2.50.0