]> Cypherpunks repositories - gostls13.git/commit
sort: use math/rand/v2 in tests and benchmarks
authorTobias Klauser <tklauser@distanz.ch>
Tue, 23 Jan 2024 16:36:06 +0000 (17:36 +0100)
committerGopher Robot <gobot@golang.org>
Thu, 8 Feb 2024 22:59:40 +0000 (22:59 +0000)
commit7c4ee1b1659cec7eb9218fe2fd54e0587ab1dbd9
treedda41134d7655929d46d5c4199f146aa24e25ff7
parent643d816c8b4348850a8a2a622d73256beea104cd
sort: use math/rand/v2 in tests and benchmarks

This allows to drop the use of deprecated rand.Seed in benchmarks.

Fixes #61142

Change-Id: I628848c0d4a500dc9a361930c393e47c3361a95c
Reviewed-on: https://go-review.googlesource.com/c/go/+/551155
Reviewed-by: Eli Bendersky <eliben@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
Auto-Submit: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/sort/sort_slices_benchmark_test.go
src/sort/sort_test.go