]> Cypherpunks.ru repositories - gostls13.git/commit
math/rand/v2: remove Rand.Seed
authorRuss Cox <rsc@golang.org>
Tue, 6 Jun 2023 13:13:57 +0000 (09:13 -0400)
committerGopher Robot <gobot@golang.org>
Mon, 30 Oct 2023 14:31:46 +0000 (14:31 +0000)
commit1cc5b34d2864251c0ab05d8c560b1aede6786327
treef1b037cf34b8d5dc9adf04653b2d6d208e47089b
parent48bd1fc93bddea0af62b2ec687fbde449be4c94c
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>
api/next/61716.txt
src/math/rand/v2/auto_test.go
src/math/rand/v2/default_test.go [deleted file]
src/math/rand/v2/race_test.go
src/math/rand/v2/rand.go