1
0
mirror of https://github.com/golang/go synced 2024-11-18 11:04:42 -07:00

math/rand: mention that the default Source is thread-safe

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/11709043
This commit is contained in:
Andrew Gerrand 2013-07-24 08:27:20 +10:00
parent 4d17efe81b
commit e97c870692

View File

@ -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"