ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
# package fnv `import "hash/fnv"` fnv包实现了FNV-1和FNV-1a(非加密hash函数),算法参见: [http://en.wikipedia.org/wiki/Fowler%E2%80%93Noll%E2%80%93Vo_hash_function](http://en.wikipedia.org/wiki/Fowler%E2%80%93Noll%E2%80%93Vo_hash_function) ## Index * [func New32() hash.Hash32](#New32) * [func New32a() hash.Hash32](#New32a) * [func New64() hash.Hash64](#New64) * [func New64a() hash.Hash64](#New64a) ## func [New32](https://github.com/golang/go/blob/master/src/hash/fnv/fnv.go#L30 "View Source") ``` func New32() hash.Hash32 ``` 返回一个新的32位FNV-1的hash.Hash32接口 ## func [New32a](https://github.com/golang/go/blob/master/src/hash/fnv/fnv.go#L36 "View Source") ``` func New32a() hash.Hash32 ``` 返回一个新的32位FNV-1a的hash.Hash32接口 ## func [New64](https://github.com/golang/go/blob/master/src/hash/fnv/fnv.go#L42 "View Source") ``` func New64() hash.Hash64 ``` 返回一个新的64位FNV-1的hash.Hash64接口 ## func [New64a](https://github.com/golang/go/blob/master/src/hash/fnv/fnv.go#L48 "View Source") ``` func New64a() hash.Hash64 ``` 返回一个新的64位FNV-1a的hash.Hash64接口