From 7d1d94462684e14cd46ff27f75e0d3ba51034222 Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Wed, 4 Dec 2019 17:04:02 +0000 Subject: [PATCH] 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 --- src/math/rand/rand.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) } -- 2.50.0