diff options
author | Michael Pratt <mpratt@google.com> | 2024-04-18 12:42:43 -0400 |
---|---|---|
committer | Michael Pratt <mpratt@google.com> | 2024-04-19 16:34:32 +0000 |
commit | 1a3682b4c1e44f334c5cc8fbad3c28b853c2aff2 (patch) | |
tree | eaa8a711a1fa890fd7ff3f201049627c5fbf9119 /src/crypto/tls/common.go | |
parent | 1a0b86375fad202048adb88cba4caec535a52a45 (diff) | |
download | go-1a3682b4c1e44f334c5cc8fbad3c28b853c2aff2.tar.gz go-1a3682b4c1e44f334c5cc8fbad3c28b853c2aff2.zip |
runtime: use bootstrapRand to initialize hashkey
The seed for rand is not initialized until after alginit. Before
initialization, rand returns a deterministic sequence, making hashkey
deterministic across processes.
Switch to bootstrapRand, like other early rand calls, such as
initialization of aeskeysched.
Fixes #66885.
Change-Id: I5023a9161232b49fda2ebd1d5f9338bbdd17b1fe
Reviewed-on: https://go-review.googlesource.com/c/go/+/580136
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
Diffstat (limited to 'src/crypto/tls/common.go')
0 files changed, 0 insertions, 0 deletions