diff options
author | Russ Cox <rsc@golang.org> | 2023-06-06 09:13:57 -0400 |
---|---|---|
committer | Gopher Robot <gobot@golang.org> | 2023-10-30 14:31:46 +0000 |
commit | 1cc5b34d2864251c0ab05d8c560b1aede6786327 (patch) | |
tree | f1b037cf34b8d5dc9adf04653b2d6d208e47089b /api | |
parent | 48bd1fc93bddea0af62b2ec687fbde449be4c94c (diff) | |
download | go-1cc5b34d2864251c0ab05d8c560b1aede6786327.tar.gz go-1cc5b34d2864251c0ab05d8c560b1aede6786327.zip |
math/rand/v2: remove Rand.Seed
Removing Rand.Seed lets us remove lockedSource as well,
along with the ambiguity in globalRand about which source
to use.
For #61716.
Change-Id: Ibe150520dd1e7dd87165eacaebe9f0c2daeaedfd
Reviewed-on: https://go-review.googlesource.com/c/go/+/502498
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Rob Pike <r@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Russ Cox <rsc@golang.org>
Diffstat (limited to 'api')
-rw-r--r-- | api/next/61716.txt | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/api/next/61716.txt b/api/next/61716.txt index 341c2e45c4..353ad379d0 100644 --- a/api/next/61716.txt +++ b/api/next/61716.txt @@ -12,8 +12,6 @@ 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 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 @@ -28,17 +26,14 @@ pkg math/rand/v2, method (*Rand) Int64N(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) 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 { Int64, Seed } #61716 +pkg math/rand/v2, type Source interface { Int64 } #61716 pkg math/rand/v2, type Source interface, Int64() int64 #61716 -pkg math/rand/v2, type Source interface, Seed(int64) #61716 -pkg math/rand/v2, type Source64 interface { Int64, Seed, Uint64 } #61716 +pkg math/rand/v2, type Source64 interface { Int64, Uint64 } #61716 pkg math/rand/v2, type Source64 interface, Int64() 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 |