From: Andrew Gerrand Date: Tue, 23 Jul 2013 22:27:20 +0000 (+1000) Subject: math/rand: mention that the default Source is thread-safe X-Git-Tag: go1.2rc2~965 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=e97c870692aa80feabd2e22c191476220fc1281f;p=gostls13.git math/rand: mention that the default Source is thread-safe R=golang-dev, r CC=golang-dev https://golang.org/cl/11709043 --- 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"