Skip to content

Commit fb79da2

Browse files
committed
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 <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Reviewed-by: Robert Griesemer <[email protected]> Run-TryBot: Ian Lance Taylor <[email protected]>
1 parent a4d5fbc commit fb79da2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/math/rand/rand.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5-
// Package rand implements pseudo-random number generators unsuitable for
6-
// security-sensitive work.
5+
// Package rand implements pseudo-random number generators suitable for tasks
6+
// such as simulation, but it should not be used for security-sensitive work.
77
//
88
// Random numbers are generated by a [Source], usually wrapped in a [Rand].
99
// Both types should be used by a single goroutine at a time: sharing among

0 commit comments

Comments
 (0)