aboutsummaryrefslogtreecommitdiff
path: root/chksum
diff options
context:
space:
mode:
Diffstat (limited to 'chksum')
-rw-r--r--chksum/chksum.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/chksum/chksum.go b/chksum/chksum.go
index 1666c56..589c804 100644
--- a/chksum/chksum.go
+++ b/chksum/chksum.go
@@ -39,8 +39,8 @@ type Checksum struct {
type Checklist []Checksum
type hashDef struct {
- hash func() hash.Hash
- decode func(string) ([]byte, error)
+ newHash func() hash.Hash
+ decode func(string) ([]byte, error)
}
var hashes = map[string]hashDef{
@@ -88,7 +88,7 @@ func parse(r io.Reader) (Checklist, error) {
cs := Checksum{
FileName: path.Clean(match[2]),
Bytes: bytes,
- Hash: hash.hash(),
+ Hash: hash.newHash(),
}
checklist = append(checklist, cs)
}