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/cgo | |
| 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/cgo')
| -rw-r--r-- | src/cmd/cgo/main.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/cgo/main.go b/src/cmd/cgo/main.go index 939e282ff0..77beb0992c 100644 --- a/src/cmd/cgo/main.go +++ b/src/cmd/cgo/main.go @@ -390,7 +390,7 @@ func main() { // We already put _cgo_ at the beginning, so the main // concern is other cgo wrappers for the same functions. // Use the beginning of the 16 bytes hash of the input to disambiguate. - h := hash.New16() + h := hash.New32() io.WriteString(h, *importPath) var once sync.Once var wg sync.WaitGroup |
