]> Cypherpunks repositories - gostls13.git/commit
archive/tar: use hash/crc32 instead of crypto/md5 for test checksums
authorqmuntal <quimmuntal@gmail.com>
Thu, 3 Oct 2024 07:34:42 +0000 (09:34 +0200)
committerQuim Muntal <quimmuntal@gmail.com>
Thu, 3 Oct 2024 15:48:09 +0000 (15:48 +0000)
commit722ecf34474a33663f69220838af8c715185b5b7
treeb8f6590c70d530c6763a30b784740f33ae5d7836
parent47a99359206f0dd41228deda0aa31f1e769cc156
archive/tar: use hash/crc32 instead of crypto/md5 for test checksums

Using MD5 for checksums in tests is an overkill, as MD5 is designed for
cryptographic purposes. Use hash/crc32 instead, which is designed for
detecting random data corruptions, aka checksums.

Change-Id: I03b30ed7f38fba2a2e59d06bd4133b495f64a013
Reviewed-on: https://go-review.googlesource.com/c/go/+/617675
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Filippo Valsorda <filippo@golang.org>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Reviewed-by: David Chase <drchase@google.com>
src/archive/tar/reader_test.go