aboutsummaryrefslogtreecommitdiff
path: root/api
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2023-06-06 08:46:45 -0400
committerGopher Robot <gobot@golang.org>2023-10-30 14:29:30 +0000
commit59f0ab40369e4f05276aa2afe20a74beb78aa0b0 (patch)
tree984f6da2a6ec671445c9feddf0bc42a4828cc42f /api
parent8c92897e15d15fbc664cd5a05132ce800cf4017f (diff)
downloadgo-59f0ab40369e4f05276aa2afe20a74beb78aa0b0.tar.gz
go-59f0ab40369e4f05276aa2afe20a74beb78aa0b0.zip
math/rand/v2: start of new API
This is the beginning of the math/rand/v2 package from proposal #61716. Start by copying old API. This CL copies math/rand/* to math/rand/v2 and updates references to math/rand to add v2 throughout. Later CLs will make the v2 changes. For #61716. Change-Id: I1624ccffae3dfa442d4ba2461942decbd076e11b Reviewed-on: https://go-review.googlesource.com/c/go/+/502495 Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Auto-Submit: Russ Cox <rsc@golang.org> Reviewed-by: Rob Pike <r@golang.org>
Diffstat (limited to 'api')
-rw-r--r--api/next/61716.txt47
1 files changed, 47 insertions, 0 deletions
diff --git a/api/next/61716.txt b/api/next/61716.txt
new file mode 100644
index 0000000000..d552934c43
--- /dev/null
+++ b/api/next/61716.txt
@@ -0,0 +1,47 @@
+pkg math/rand/v2, func ExpFloat64() float64 #61716
+pkg math/rand/v2, func Float32() float32 #61716
+pkg math/rand/v2, func Float64() float64 #61716
+pkg math/rand/v2, func Int() int #61716
+pkg math/rand/v2, func Int31() int32 #61716
+pkg math/rand/v2, func Int31n(int32) int32 #61716
+pkg math/rand/v2, func Int63() int64 #61716
+pkg math/rand/v2, func Int63n(int64) int64 #61716
+pkg math/rand/v2, func Intn(int) int #61716
+pkg math/rand/v2, func New(Source) *Rand #61716
+pkg math/rand/v2, func NewSource(int64) Source #61716
+pkg math/rand/v2, func NewZipf(*Rand, float64, float64, uint64) *Zipf #61716
+pkg math/rand/v2, func NormFloat64() float64 #61716
+pkg math/rand/v2, func Perm(int) []int #61716
+pkg math/rand/v2, func Read //deprecated #61716
+pkg math/rand/v2, func Read([]uint8) (int, error) #61716
+pkg math/rand/v2, func Seed //deprecated #61716
+pkg math/rand/v2, func Seed(int64) #61716
+pkg math/rand/v2, func Shuffle(int, func(int, int)) #61716
+pkg math/rand/v2, func Uint32() uint32 #61716
+pkg math/rand/v2, func Uint64() uint64 #61716
+pkg math/rand/v2, method (*Rand) ExpFloat64() float64 #61716
+pkg math/rand/v2, method (*Rand) Float32() float32 #61716
+pkg math/rand/v2, method (*Rand) Float64() float64 #61716
+pkg math/rand/v2, method (*Rand) Int() int #61716
+pkg math/rand/v2, method (*Rand) Int31() int32 #61716
+pkg math/rand/v2, method (*Rand) Int31n(int32) int32 #61716
+pkg math/rand/v2, method (*Rand) Int63() int64 #61716
+pkg math/rand/v2, method (*Rand) Int63n(int64) int64 #61716
+pkg math/rand/v2, method (*Rand) Intn(int) int #61716
+pkg math/rand/v2, method (*Rand) NormFloat64() float64 #61716
+pkg math/rand/v2, method (*Rand) Perm(int) []int #61716
+pkg math/rand/v2, method (*Rand) Read([]uint8) (int, error) #61716
+pkg math/rand/v2, method (*Rand) Seed(int64) #61716
+pkg math/rand/v2, method (*Rand) Shuffle(int, func(int, int)) #61716
+pkg math/rand/v2, method (*Rand) Uint32() uint32 #61716
+pkg math/rand/v2, method (*Rand) Uint64() uint64 #61716
+pkg math/rand/v2, method (*Zipf) Uint64() uint64 #61716
+pkg math/rand/v2, type Rand struct #61716
+pkg math/rand/v2, type Source interface { Int63, Seed } #61716
+pkg math/rand/v2, type Source interface, Int63() int64 #61716
+pkg math/rand/v2, type Source interface, Seed(int64) #61716
+pkg math/rand/v2, type Source64 interface { Int63, Seed, Uint64 } #61716
+pkg math/rand/v2, type Source64 interface, Int63() int64 #61716
+pkg math/rand/v2, type Source64 interface, Seed(int64) #61716
+pkg math/rand/v2, type Source64 interface, Uint64() uint64 #61716
+pkg math/rand/v2, type Zipf struct #61716