diff --git a/internal/deephash/deephash.go b/internal/deephash/deephash.go index 7b9fc84d8..f7dafac4f 100644 --- a/internal/deephash/deephash.go +++ b/internal/deephash/deephash.go @@ -23,8 +23,7 @@ import ( func calcHash(v interface{}) string { h := sha256.New() - // 64 matches the chunk size in crypto/sha256/sha256.go - b := bufio.NewWriterSize(h, 64) + b := bufio.NewWriterSize(h, h.BlockSize()) scratch := make([]byte, 0, 64) printTo(b, v, scratch) b.Flush()