From eab8e987c067ca91ad4ed79b384d8a33494bbf39 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Tue, 7 Jan 2025 11:28:44 -0500 Subject: cmd: use cmd/internal/hash.New32 and Sum32 only Do not use New16, New20, Sum16, Sum20 anymore. As of CL 641096, these are just wrappers around New32 and Sum32. Change call sites to use them directly. Change-Id: Icea91a77449f6839b903894997057ba404bd04e0 Reviewed-on: https://go-review.googlesource.com/c/go/+/641076 LUCI-TryBot-Result: Go LUCI Reviewed-by: Keith Randall Reviewed-by: Cherry Mui Auto-Submit: Russ Cox Reviewed-by: Keith Randall --- src/cmd/internal/obj/objfile.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cmd/internal/obj/objfile.go') diff --git a/src/cmd/internal/obj/objfile.go b/src/cmd/internal/obj/objfile.go index bc22765abc..3299fbf4e6 100644 --- a/src/cmd/internal/obj/objfile.go +++ b/src/cmd/internal/obj/objfile.go @@ -494,7 +494,7 @@ func contentHash64(s *LSym) goobj.Hash64Type { // For now, we assume there is no circular dependencies among // hashed symbols. func (w *writer) contentHash(s *LSym) goobj.HashType { - h := hash.New20() + h := hash.New32() var tmp [14]byte // Include the size of the symbol in the hash. -- cgit v1.3-5-g9baa