]> Cypherpunks repositories - gostls13.git/commitdiff
math/rand: add concurrency warning to overview comment
authorAditya Mukerjee <dev@chimeracoder.net>
Sat, 15 Jul 2017 20:27:30 +0000 (16:27 -0400)
committerBryan Mills <bcmills@google.com>
Sat, 15 Jul 2017 20:34:17 +0000 (20:34 +0000)
Change-Id: I52efa7aa72a23256e5ca56470ffeba975ed8f739
Reviewed-on: https://go-review.googlesource.com/48760
Reviewed-by: Bryan Mills <bcmills@google.com>
src/math/rand/rand.go

index 9fe1cbd61e184daed82e58436c2f0001126916da..fe99c948ac2f604e9234f360a55efafc0fcc9686 100644 (file)
@@ -8,7 +8,8 @@
 // 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.
+// The default Source is safe for concurrent use by multiple goroutines, but
+// Sources created by NewSource are not.
 //
 // For random numbers suitable for security-sensitive work, see the crypto/rand
 // package.