diff options
author | Joe Tsai <joetsai@digital-static.net> | 2021-07-22 16:14:42 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-22 16:14:42 -0700 |
commit | 395a0ac549058d781199661ca2e37cc636db43e4 (patch) | |
tree | db4392a8a97c8e946c405f06405d60c0de0977a8 /cmp/compare_test.go | |
parent | 402949e8139bb890c71a707b6faf6dd05c92f4e5 (diff) | |
download | go-cmp-395a0ac549058d781199661ca2e37cc636db43e4.tar.gz |
Use sha256 in test (#268)
Some aggressive dependency checks flag the use of md5.
Switch to sha256 as it accomplishes the same purpose.
Diffstat (limited to 'cmp/compare_test.go')
-rw-r--r-- | cmp/compare_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cmp/compare_test.go b/cmp/compare_test.go index a435209..5cdce37 100644 --- a/cmp/compare_test.go +++ b/cmp/compare_test.go @@ -6,7 +6,7 @@ package cmp_test import ( "bytes" - "crypto/md5" + "crypto/sha256" "encoding/json" "errors" "flag" @@ -476,8 +476,8 @@ func comparerTests() []test { reason: "comparer for fmt.Stringer used to compare differing types with different strings", }, { label: label + "/DifferingHash", - x: md5.Sum([]byte{'a'}), - y: md5.Sum([]byte{'b'}), + x: sha256.Sum256([]byte{'a'}), + y: sha256.Sum256([]byte{'b'}), wantEqual: false, reason: "hash differs", }, { |