]> Cypherpunks.ru repositories - gostls13.git/commitdiff
math/rand: rewrite the math/rand package comment to say what it's good for
authorRob Pike <r@golang.org>
Wed, 8 Feb 2023 03:19:59 +0000 (14:19 +1100)
committerRob Pike <r@golang.org>
Thu, 9 Feb 2023 23:41:42 +0000 (23:41 +0000)
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>

src/math/rand/rand.go

index 612b34d53e3b8f5e534d6c7d6fa5e0506ab8f9a8..a6f467622e097a17f47b41d6f3b6eb87aed9d530 100644 (file)
@@ -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