]> Cypherpunks repositories - gostls13.git/commit
runtime: for fallback hash, get rid of constant xors
authorKeith Randall <khr@golang.org>
Thu, 18 Apr 2024 21:05:55 +0000 (14:05 -0700)
committerKeith Randall <khr@google.com>
Fri, 19 Apr 2024 17:39:28 +0000 (17:39 +0000)
commit35c619398b976bf90fb8c813653cf48ce732b032
treeecdc46820eacb5b6d8b25de14870c37168844c23
parentc260de24b688d72206f1224e298181c8363fc33d
runtime: for fallback hash, get rid of constant xors

There's no need for these. If hashkey[i] is uniform over [0,1<<64), then
hashkey[0]^C has exactly the same distribution, for any constant C.

Change-Id: I4e10c27eff15e4b7a45139654ac41f410b1b12fc
Reviewed-on: https://go-review.googlesource.com/c/go/+/580218
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/runtime/hash64.go