math/rand: add concurrency warning to overview comment

Change-Id: I52efa7aa72a23256e5ca56470ffeba975ed8f739
Reviewed-on: https://go-review.googlesource.com/48760
Reviewed-by: Bryan Mills <bcmills@google.com>
This commit is contained in:
Aditya Mukerjee 2017-07-15 16:27:30 -04:00 committed by Bryan Mills
parent 1bca6a5ebc
commit a83d0175a8
1 changed files with 2 additions and 1 deletions

View 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.