From d2b6bdb0350e9b2b8f704b214ce5936b72de043d Mon Sep 17 00:00:00 2001 From: Paschalis T Date: Fri, 16 Aug 2024 01:29:18 +0300 Subject: 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 Reviewed-by: Cherry Mui Reviewed-by: Ian Lance Taylor LUCI-TryBot-Result: Go LUCI --- src/runtime/metrics/doc.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/runtime') 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=... -- cgit v1.3-5-g9baa