]> Cypherpunks.ru repositories - gostls13.git/commit
math/rand/v2: rename various functions
authorRuss Cox <rsc@golang.org>
Sun, 6 Aug 2023 03:49:01 +0000 (23:49 -0400)
committerGopher Robot <gobot@golang.org>
Mon, 30 Oct 2023 14:29:37 +0000 (14:29 +0000)
commitd42750b17c17fb1c3241b74c7ba2af96dff10195
tree8b1e33dfc62b0f1f919f4141030cd08cb216b235
parent59f0ab40369e4f05276aa2afe20a74beb78aa0b0
math/rand/v2: rename various functions

Int31 -> Int32
Int31n -> Int32N
Int63 -> Int64
Int63n -> Int64N
Intn -> IntN

The 31 and 63 are pedantic and confusing: the functions should
be named for the type they return, same as all the others.

The lower-case n is inconsistent with Go's usual CamelCase
and especially problematic because we plan to add 'func N'.
Capitalize the n.

For #61716.

Change-Id: Idb1a005a82f353677450d47fb612ade7a41fde69
Reviewed-on: https://go-review.googlesource.com/c/go/+/516857
Auto-Submit: Russ Cox <rsc@golang.org>
Reviewed-by: Robert Griesemer <gri@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
api/next/61716.txt
src/math/rand/v2/auto_test.go
src/math/rand/v2/example_test.go
src/math/rand/v2/export_test.go
src/math/rand/v2/race_test.go
src/math/rand/v2/rand.go
src/math/rand/v2/rand_test.go
src/math/rand/v2/regress_test.go
src/math/rand/v2/rng.go