]> Cypherpunks repositories - gostls13.git/commit
math/rand: make calls to Seed no-op
authorPaschalis T <paschalis.tsilias@gmail.com>
Thu, 15 Aug 2024 22:29:18 +0000 (01:29 +0300)
committerGopher Robot <gobot@golang.org>
Mon, 19 Aug 2024 20:47:27 +0000 (20:47 +0000)
commitd2b6bdb0350e9b2b8f704b214ce5936b72de043d
treed6f86617b1c73f758580935458d0d213c251905f
parentd5f7da79870800ac2f7c2a68501f73a83d481d16
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>
doc/godebug.md
doc/next/6-stdlib/99-minor/math/rand/67273.md [new file with mode: 0644]
src/internal/godebugs/table.go
src/math/rand/rand.go
src/math/rand/rand_test.go
src/runtime/metrics/doc.go