diff options
| author | Aditya Mukerjee <dev@chimeracoder.net> | 2017-07-15 16:27:30 -0400 |
|---|---|---|
| committer | Bryan Mills <bcmills@google.com> | 2017-07-15 20:34:17 +0000 |
| commit | a83d0175a832eae170bee146b0f6743b02fbc59f (patch) | |
| tree | b13fa08b303f9a182e81790f6566f8a986ffb82d /src | |
| parent | 1bca6a5ebcc4c624b8f3ef0b7c0df2f6db0507d3 (diff) | |
| download | go-a83d0175a832eae170bee146b0f6743b02fbc59f.tar.xz | |
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>
Diffstat (limited to 'src')
| -rw-r--r-- | src/math/rand/rand.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/math/rand/rand.go b/src/math/rand/rand.go index 9fe1cbd61e..fe99c948ac 100644 --- a/src/math/rand/rand.go +++ b/src/math/rand/rand.go @@ -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. |
