go/src/math/rand
Russ Cox 213495a4a6 internal/godebug: export non-default-behavior counters in runtime/metrics
Allow GODEBUG users to report how many times a setting
resulted in non-default behavior.

Record non-default-behaviors for all existing GODEBUGs.

Also rework tests to ensure that runtime is in sync with runtime/metrics.All,
and generate docs mechanically from metrics.All.

For #56986.

Change-Id: Iefa1213e2a5c3f19ea16cd53298c487952ef05a4
Reviewed-on: https://go-review.googlesource.com/c/go/+/453618
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Russ Cox <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
2023-01-19 22:26:43 +00:00
..
auto_test.go math/rand: auto-seed global source 2022-10-25 16:49:48 +00:00
example_test.go all: remove uses of rand.Seed 2022-10-26 16:24:57 +00:00
exp.go all: gofmt main repo 2022-04-11 16:34:30 +00:00
export_test.go testing: add -shuffle=off|on|N to alter the execution order of tests and benchmarks 2021-04-28 16:06:21 +00:00
gen_cooked.go all: go fix -fix=buildtag std cmd (except for bootstrap deps, vendor) 2021-10-28 18:17:57 +00:00
normal.go all: gofmt main repo 2022-04-11 16:34:30 +00:00
race_test.go testing: add -shuffle=off|on|N to alter the execution order of tests and benchmarks 2021-04-28 16:06:21 +00:00
rand.go internal/godebug: export non-default-behavior counters in runtime/metrics 2023-01-19 22:26:43 +00:00
rand_test.go testing: add -shuffle=off|on|N to alter the execution order of tests and benchmarks 2021-04-28 16:06:21 +00:00
regress_test.go all: gofmt -w -r 'interface{} -> any' src 2021-12-13 18:45:54 +00:00
rng.go
zipf.go