Commit a83d0175 authored by Aditya Mukerjee's avatar Aditya Mukerjee Committed by Bryan Mills

math/rand: add concurrency warning to overview comment

Change-Id: I52efa7aa72a23256e5ca56470ffeba975ed8f739
Reviewed-on: https://go-review.googlesource.com/48760Reviewed-by: 's avatarBryan Mills <bcmills@google.com>
parent 1bca6a5e
...@@ -8,7 +8,8 @@ ...@@ -8,7 +8,8 @@
// Float64 and Int, use a default shared Source that produces a deterministic // 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 // 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. // 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 // For random numbers suitable for security-sensitive work, see the crypto/rand
// package. // package.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment