1 Star 1 Fork 0

妙音/oils

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
siphash.go 391 Bytes
一键复制 编辑 原始数据 按行查看 历史
妙音 提交于 2021-04-27 15:09 . add Uint32s
package hashs
import "github.com/dchest/siphash"
const (
k0 = 506097522914230528
k1 = 1084818905618843912
)
// SipHash128 哈希.
func SipHash128(bs []byte) (uint64, uint64) { // nolint: stylecheck
return siphash.Hash128(k0, k1, bs)
}
// SipHash64 哈希,和Google Guava的sipHash24相同.
func SipHash64(bs []byte) uint64 { // nolint: stylecheck
return siphash.Hash(k0, k1, bs)
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/xuender/oils.git
git@gitee.com:xuender/oils.git
xuender
oils
oils
v1.0.52

搜索帮助