]> Cypherpunks.ru repositories - gostls13.git/commit
math/rand: refactor to delay allocation of global source
authorRuss Cox <rsc@golang.org>
Tue, 4 Oct 2022 15:24:47 +0000 (11:24 -0400)
committerGopher Robot <gobot@golang.org>
Tue, 18 Oct 2022 14:49:46 +0000 (14:49 +0000)
commit7cf06f070e56dfb6507122704bc75d697ccc350f
treee696b248b098d6347c7ba127c6b8adbbe6af8f24
parent8dc08394f0d5f83523080e4dd99fded26b7c1ceb
math/rand: refactor to delay allocation of global source

This sets up for delaying the decision of which seed to use,
but this CL still keeps the original global Seed(1) semantics.

Preparation for #54880.

Change-Id: Ibfa9d50ec9023aa755a83852e55168fa7d24b115
Reviewed-on: https://go-review.googlesource.com/c/go/+/443057
Auto-Submit: Russ Cox <rsc@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
src/math/rand/rand.go