From e97c870692aa80feabd2e22c191476220fc1281f Mon Sep 17 00:00:00 2001 From: Andrew Gerrand Date: Wed, 24 Jul 2013 08:27:20 +1000 Subject: [PATCH] math/rand: mention that the default Source is thread-safe R=golang-dev, r CC=golang-dev https://golang.org/cl/11709043 --- src/pkg/math/rand/rand.go | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pkg/math/rand/rand.go b/src/pkg/math/rand/rand.go index 608012a300..2157cdb465 100644 --- a/src/pkg/math/rand/rand.go +++ b/src/pkg/math/rand/rand.go @@ -8,6 +8,7 @@ // Float64 and Int, use a default shared Source that produces a deterministic // sequence of values each time a program is run. Use the Seed function to // initialize the default Source if different behavior is required for each run. +// The default Source is safe for concurrent use by multiple goroutines. package rand import "sync" -- 2.48.1