]> Cypherpunks.ru repositories - gostls13.git/commit
math/rand/v2: start of new API
authorRuss Cox <rsc@golang.org>
Tue, 6 Jun 2023 12:46:45 +0000 (08:46 -0400)
committerGopher Robot <gobot@golang.org>
Mon, 30 Oct 2023 14:29:30 +0000 (14:29 +0000)
commit59f0ab40369e4f05276aa2afe20a74beb78aa0b0
tree984f6da2a6ec671445c9feddf0bc42a4828cc42f
parent8c92897e15d15fbc664cd5a05132ce800cf4017f
math/rand/v2: start of new API

This is the beginning of the math/rand/v2 package from proposal #61716.
Start by copying old API. This CL copies math/rand/* to math/rand/v2
and updates references to math/rand to add v2 throughout.
Later CLs will make the v2 changes.

For #61716.

Change-Id: I1624ccffae3dfa442d4ba2461942decbd076e11b
Reviewed-on: https://go-review.googlesource.com/c/go/+/502495
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Russ Cox <rsc@golang.org>
Reviewed-by: Rob Pike <r@golang.org>
16 files changed:
api/next/61716.txt [new file with mode: 0644]
src/go/build/deps_test.go
src/math/rand/v2/auto_test.go [new file with mode: 0644]
src/math/rand/v2/default_test.go [new file with mode: 0644]
src/math/rand/v2/example_test.go [new file with mode: 0644]
src/math/rand/v2/exp.go [new file with mode: 0644]
src/math/rand/v2/export_test.go [new file with mode: 0644]
src/math/rand/v2/gen_cooked.go [new file with mode: 0644]
src/math/rand/v2/normal.go [new file with mode: 0644]
src/math/rand/v2/race_test.go [new file with mode: 0644]
src/math/rand/v2/rand.go [new file with mode: 0644]
src/math/rand/v2/rand_test.go [new file with mode: 0644]
src/math/rand/v2/regress_test.go [new file with mode: 0644]
src/math/rand/v2/rng.go [new file with mode: 0644]
src/math/rand/v2/zipf.go [new file with mode: 0644]
src/runtime/stubs.go