]> Cypherpunks repositories - gostls13.git/commit
hash/maphash: weaken avalanche test a bit
authorKeith Randall <khr@golang.org>
Tue, 16 May 2023 19:02:52 +0000 (12:02 -0700)
committerGopher Robot <gobot@golang.org>
Wed, 17 May 2023 14:45:20 +0000 (14:45 +0000)
commit1bb2f73237f8375d364564c4bb2c2ab16a31da87
tree965f22f861eccdcb04e2e8d122c55899635aaec5
parentc890d40d0db00a6a91fd48acee024f0478f10ce4
hash/maphash: weaken avalanche test a bit

Give the test a bit more wiggle room.

Previously the allowed range was about 46.5% to 53.5%. Now it is about 43% TO 57%.

Fixes #60170

Change-Id: Ieda471e0986c52edb9f6d31beb8e41917876d6c5
Reviewed-on: https://go-review.googlesource.com/c/go/+/495415
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Heschi Kreinick <heschi@google.com>
Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Reviewed-by: Keith Randall <khr@google.com>
Auto-Submit: Keith Randall <khr@google.com>
Run-TryBot: Keith Randall <khr@golang.org>
src/hash/maphash/smhasher_test.go
src/runtime/hash_test.go