aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorValentin Deleplace <deleplace@google.com>2023-02-10 15:51:11 +0100
committerGopher Robot <gobot@golang.org>2023-02-10 16:53:36 +0000
commit2b807e1d7b00a26aa6a26fa47129bac3f711e5f5 (patch)
tree52af19a8b3cc741786f875c7cac8889a0f921daa /src
parentb02d5d325a4e93c88ecfc83a094c252148caa748 (diff)
downloadgo-2b807e1d7b00a26aa6a26fa47129bac3f711e5f5.tar.xz
math/rand: fix typo in Seed deprecation comment
Change-Id: I37a9e4362953a711840087e1b7b8d7a25f1a83b7 Reviewed-on: https://go-review.googlesource.com/c/go/+/467275 Reviewed-by: Russ Cox <rsc@golang.org> TryBot-Bypass: Russ Cox <rsc@golang.org> Auto-Submit: Russ Cox <rsc@golang.org>
Diffstat (limited to 'src')
-rw-r--r--src/math/rand/rand.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/math/rand/rand.go b/src/math/rand/rand.go
index a6f467622e..a98b3905bd 100644
--- a/src/math/rand/rand.go
+++ b/src/math/rand/rand.go
@@ -391,7 +391,7 @@ func (fs *fastSource) read(p []byte, readVal *int64, readPos *int8) (n int, err
// of results from the global random source (using functions such as Int)
// can be broken when a dependency changes how much it consumes
// from the global random source. To avoid such breakages, programs
-// that need a specific result sequence should use NewRand(NewSource(seed))
+// that need a specific result sequence should use New(NewSource(seed))
// to obtain a random generator that other packages cannot access.
func Seed(seed int64) {
orig := globalRandGenerator.Load()