go/src/internal/coverage/cfile
qmuntal 092d18b318 internal/coverage: use 128-bit FNV-1a hash instead of MD5
This change replaces the MD5 hash used to identify coverage files with a
128-bit FNV-1a hash. This change is motivated by the fact that MD5
should only be used for legacy cryptographic purposes.

The 128-bit FNV-1a hash is sufficient for the purpose of identifying
coverage files, it having the same theoretical collision resistance as
MD5, but with the added benefit of being faster to compute.

Change-Id: I7b547ce2ea784f8f4071599a10fcb512b87ee469
Reviewed-on: https://go-review.googlesource.com/c/go/+/617360
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Than McIntosh <thanm@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
2024-10-07 15:45:41 +00:00
..
testdata
apis.go
emit.go internal/coverage: use 128-bit FNV-1a hash instead of MD5 2024-10-07 15:45:41 +00:00
emitdata_test.go std: fix calls to Printf(s) with non-constant s 2024-05-23 18:42:28 +00:00
hooks.go runtime: move exit hooks into internal/runtime/exithook 2024-05-23 02:32:19 +00:00
snapshot_test.go internal/coverage/cfile: harden the coverage snapshot test 2024-06-13 16:44:49 +00:00
testsupport.go cmd/go: fix problems with coverage percentage reporting w/ -coverpkg 2024-06-14 11:46:05 +00:00
ts_test.go cmd/go: fix problems with coverage percentage reporting w/ -coverpkg 2024-06-14 11:46:05 +00:00