]> Cypherpunks.ru repositories - gostls13.git/commit
hash/maphash: add more tests for seed generation
authorKeith Randall <khr@golang.org>
Mon, 24 Feb 2020 03:23:15 +0000 (19:23 -0800)
committerKeith Randall <khr@golang.org>
Mon, 2 Mar 2020 17:15:20 +0000 (17:15 +0000)
commitbef0b4ea8fd0dbda6f29412a841c176d2fc2f2eb
tree40f1923ba03c7301cfe6de9c3629fdd04b746b84
parentd7c073ecbfc3ecc506bfc753b271973b47f8bc15
hash/maphash: add more tests for seed generation

Test all the paths by which a Hash picks its seed.
Make sure they all behave identically to a preset seed.

Change-Id: I2f7950857697f2f07226b96655574c36931b2aae
Reviewed-on: https://go-review.googlesource.com/c/go/+/220686
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Vladimir Evgrafov <evgrafov.vladimir@gmail.com>
Reviewed-by: Alan Donovan <adonovan@google.com>
src/hash/maphash/maphash_test.go