mirror of
https://gitcode.com/gitea/gitea.git
synced 2025-06-19 03:08:30 +08: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