diff options
| author | Paschalis T <paschalis.tsilias@gmail.com> | 2024-08-16 01:29:18 +0300 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2024-08-19 20:47:27 +0000 |
| commit | d2b6bdb0350e9b2b8f704b214ce5936b72de043d (patch) | |
| tree | d6f86617b1c73f758580935458d0d213c251905f /src/runtime/metrics/doc.go | |
| parent | d5f7da79870800ac2f7c2a68501f73a83d481d16 (diff) | |
| download | go-d2b6bdb0350e9b2b8f704b214ce5936b72de043d.tar.xz | |
math/rand: make calls to Seed no-op
Makes calls to the global Seed a no-op. The GODEBUG=randseednop=0
setting can be used to revert this behavior.
Fixes #67273
Change-Id: I79c1b2b23f3bc472fbd6190cb916a9d7583250f4
Reviewed-on: https://go-review.googlesource.com/c/go/+/606055
Auto-Submit: Cherry Mui <cherryyz@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Diffstat (limited to 'src/runtime/metrics/doc.go')
| -rw-r--r-- | src/runtime/metrics/doc.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/runtime/metrics/doc.go b/src/runtime/metrics/doc.go index da3d956d48..906abb4102 100644 --- a/src/runtime/metrics/doc.go +++ b/src/runtime/metrics/doc.go @@ -306,6 +306,10 @@ Below is the full list of supported metrics, ordered lexicographically. The number of non-default behaviors executed by the math/rand package due to a non-default GODEBUG=randautoseed=... setting. + /godebug/non-default-behavior/randseednop:events + The number of non-default behaviors executed by the math/rand + package due to a non-default GODEBUG=randseednop=... setting. + /godebug/non-default-behavior/tarinsecurepath:events The number of non-default behaviors executed by the archive/tar package due to a non-default GODEBUG=tarinsecurepath=... |
