aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Pike <r@golang.org>2023-02-08 14:19:59 +1100
committerRob Pike <r@golang.org>2023-02-09 23:41:42 +0000
commitfb79da299127b3ff85e14f37e4616a26e6c2a720 (patch)
tree914aa9240f88f4b5d8ba0ee2b428df4158b99ced
parenta4d5fbc3a48b63f19fcd2a4d040a85c75a2709b5 (diff)
downloadgo-fb79da299127b3ff85e14f37e4616a26e6c2a720.tar.xz
math/rand: rewrite the math/rand package comment to say what it's good for
It currently says only what it wasn't good for, which is not helpful. Change-Id: I468c7f385c14eaca99788a94d53c30b729ed0944 Reviewed-on: https://go-review.googlesource.com/c/go/+/466276 Reviewed-by: Ian Lance Taylor <iant@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Robert Griesemer <gri@google.com> Run-TryBot: Ian Lance Taylor <iant@google.com>
-rw-r--r--src/math/rand/rand.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/math/rand/rand.go b/src/math/rand/rand.go
index 612b34d53e..a6f467622e 100644
--- a/src/math/rand/rand.go
+++ b/src/math/rand/rand.go
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-// Package rand implements pseudo-random number generators unsuitable for
-// security-sensitive work.
+// Package rand implements pseudo-random number generators suitable for tasks
+// such as simulation, but it should not be used for security-sensitive work.
//
// Random numbers are generated by a [Source], usually wrapped in a [Rand].
// Both types should be used by a single goroutine at a time: sharing among