mirror of
https://github.com/go-gitea/gitea
synced 2025-07-05 10:07:22 +00:00
go1.16 (#14783)
This commit is contained in:
6
vendor/github.com/minio/md5-simd/md5.go
generated
vendored
6
vendor/github.com/minio/md5-simd/md5.go
generated
vendored
@ -27,6 +27,12 @@ type Hasher interface {
|
||||
Close()
|
||||
}
|
||||
|
||||
// StdlibHasher returns a Hasher that uses the stdlib for hashing.
|
||||
// Used hashers are stored in a pool for fast reuse.
|
||||
func StdlibHasher() Hasher {
|
||||
return &md5Wrapper{Hash: md5Pool.New().(hash.Hash)}
|
||||
}
|
||||
|
||||
// md5Wrapper is a wrapper around the builtin hasher.
|
||||
type md5Wrapper struct {
|
||||
hash.Hash
|
||||
|
Reference in New Issue
Block a user