diff options
author | Russ Cox <rsc@golang.org> | 2023-06-06 08:53:54 -0400 |
---|---|---|
committer | Gopher Robot <gobot@golang.org> | 2023-10-30 14:30:14 +0000 |
commit | d6c1ef52ad31eea6795b199801969a11b0dc55d1 (patch) | |
tree | 8d15d46d5d3b751026415935325c0c7e9f0263f2 /api | |
parent | d42750b17c17fb1c3241b74c7ba2af96dff10195 (diff) | |
download | go-d6c1ef52ad31eea6795b199801969a11b0dc55d1.tar.gz go-d6c1ef52ad31eea6795b199801969a11b0dc55d1.zip |
math/rand/v2: remove Read
In math/rand, Read is deprecated. Remove in v2.
People should use crypto/rand if they need long strings.
For #61716.
Change-Id: Ib254b7e1844616e96db60a3a7abb572b0dcb1583
Reviewed-on: https://go-review.googlesource.com/c/go/+/502497
Reviewed-by: Rob Pike <r@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Auto-Submit: Russ Cox <rsc@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Diffstat (limited to 'api')
-rw-r--r-- | api/next/61716.txt | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/api/next/61716.txt b/api/next/61716.txt index 36252ab50d..341c2e45c4 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 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 @@ -30,7 +28,6 @@ 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) 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 |