Skip to content

Commit 7d1d944

Browse files
committed
math/rand: update comment to avoid use of ^ for exponentiation
Fixes #35920 Change-Id: I1a4d26c5f7f3fbd4de13fc337de482667d83c47f Reviewed-on: https://go-review.googlesource.com/c/go/+/209758 Reviewed-by: Alberto Donizetti <[email protected]>
1 parent 98e7270 commit 7d1d944

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/math/rand/rand.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ var _ *rngSource = globalRand.src.(*lockedSource).src
298298
// Seed uses the provided seed value to initialize the default Source to a
299299
// deterministic state. If Seed is not called, the generator behaves as
300300
// if seeded by Seed(1). Seed values that have the same remainder when
301-
// divided by 2^31-1 generate the same pseudo-random sequence.
301+
// divided by 2³¹-1 generate the same pseudo-random sequence.
302302
// Seed, unlike the Rand.Seed method, is safe for concurrent use.
303303
func Seed(seed int64) { globalRand.Seed(seed) }
304304

0 commit comments

Comments
 (0)