From 1cc5b34d2864251c0ab05d8c560b1aede6786327 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Tue, 6 Jun 2023 09:13:57 -0400 Subject: 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 Reviewed-by: Rob Pike LUCI-TryBot-Result: Go LUCI Auto-Submit: Russ Cox --- api/next/61716.txt | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'api') 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 -- cgit v1.2.3-54-g00ecf