diff options
| author | Russ Cox <rsc@golang.org> | 2025-01-07 11:28:44 -0500 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2025-02-13 12:34:30 -0800 |
| commit | eab8e987c067ca91ad4ed79b384d8a33494bbf39 (patch) | |
| tree | 4d980ee4060c22c4e91789f455a2fe9d7d1ef6b4 /src/cmd/objdump | |
| parent | a7e331e67105f1a8cc0236b7f3b1e6a3570dda27 (diff) | |
| download | go-eab8e987c067ca91ad4ed79b384d8a33494bbf39.tar.xz | |
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 <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Auto-Submit: Russ Cox <rsc@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
Diffstat (limited to 'src/cmd/objdump')
| -rw-r--r-- | src/cmd/objdump/objdump_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/objdump/objdump_test.go b/src/cmd/objdump/objdump_test.go index 0f3a183c61..0d6f608a3f 100644 --- a/src/cmd/objdump/objdump_test.go +++ b/src/cmd/objdump/objdump_test.go @@ -134,9 +134,9 @@ func testDisasm(t *testing.T, srcfname string, printCode bool, printGnuAsm bool, goarch = f[1] } - hash := hash.Sum16([]byte(fmt.Sprintf("%v-%v-%v-%v", srcfname, flags, printCode, printGnuAsm))) + hash := hash.Sum32([]byte(fmt.Sprintf("%v-%v-%v-%v", srcfname, flags, printCode, printGnuAsm))) tmp := t.TempDir() - hello := filepath.Join(tmp, fmt.Sprintf("hello-%x.exe", hash)) + hello := filepath.Join(tmp, fmt.Sprintf("hello-%x.exe", hash[:16])) args := []string{"build", "-o", hello} args = append(args, flags...) args = append(args, srcfname) |
