aboutsummaryrefslogtreecommitdiff
path: root/src/math
diff options
context:
space:
mode:
authorBrad Fitzpatrick <bradfitz@golang.org>2019-12-04 17:04:02 +0000
committerBrad Fitzpatrick <bradfitz@golang.org>2019-12-04 21:14:24 +0000
commit7d1d94462684e14cd46ff27f75e0d3ba51034222 (patch)
tree0e3764ef1706ac705e56da78edaafc43d770fef5 /src/math
parent98e7270a3d03c2741fc790ea619e5754c49e05ed (diff)
downloadgo-7d1d94462684e14cd46ff27f75e0d3ba51034222.tar.gz
go-7d1d94462684e14cd46ff27f75e0d3ba51034222.zip
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 <alb.donizetti@gmail.com>
Diffstat (limited to 'src/math')
-rw-r--r--src/math/rand/rand.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/math/rand/rand.go b/src/math/rand/rand.go
index 3e44613663..d6422c914d 100644
--- a/src/math/rand/rand.go
+++ b/src/math/rand/rand.go
@@ -298,7 +298,7 @@ var _ *rngSource = globalRand.src.(*lockedSource).src
// Seed uses the provided seed value to initialize the default Source to a
// deterministic state. If Seed is not called, the generator behaves as
// if seeded by Seed(1). Seed values that have the same remainder when
-// divided by 2^31-1 generate the same pseudo-random sequence.
+// divided by 2³¹-1 generate the same pseudo-random sequence.
// Seed, unlike the Rand.Seed method, is safe for concurrent use.
func Seed(seed int64) { globalRand.Seed(seed) }