Brad Fitzpatrick 4ae7eff7c2 util/deephash: fix map hashing when key & element have the same type
Regression from 09afb8e35b56c1150ae9872d781c7ae3c151b848, in which the
same reflect.Value scratch value was being used as the map iterator
copy destination.

Also: make nil and empty maps hash differently, add test.

Fixes #4871

Co-authored-by: Josh Bleecher Snyder <josharian@gmail.com>
Change-Id: I67f42524bc81f694c1b7259d6682200125ea4a66
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
(cherry picked from commit 757ecf7e8066301f582fc77cc806ebcb9c4ba3ed)
2022-06-17 19:43:17 -07:00
..
2022-03-18 15:19:26 -07:00
2022-03-16 14:53:59 -07:00
2021-08-05 15:54:00 -07:00
2021-08-05 15:54:00 -07:00
2021-08-05 15:54:00 -07:00
2021-08-05 15:54:00 -07:00
2022-03-17 11:35:09 -07:00