aboutsummaryrefslogtreecommitdiff
path: root/src/math
diff options
context:
space:
mode:
Diffstat (limited to 'src/math')
-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()