Upgrade highwayhash
The updated version contains a fix that makes hashing consistent when CPU endian changes. Fixed #6823 Change: 145563886
This commit is contained in:
parent
14a41dc135
commit
6ed5eaaac1
@ -125,14 +125,15 @@ def tf_workspace(path_prefix = "", tf_repo_name = ""):
|
||||
actual = "@farmhash//:farmhash",
|
||||
)
|
||||
|
||||
native.http_archive(
|
||||
native.new_http_archive(
|
||||
name = "highwayhash",
|
||||
urls = [
|
||||
"http://bazel-mirror.storage.googleapis.com/github.com/google/highwayhash/archive/4bce8fc6a9ca454d9d377dbc4c4d33488bbab78f.tar.gz",
|
||||
"https://github.com/google/highwayhash/archive/4bce8fc6a9ca454d9d377dbc4c4d33488bbab78f.tar.gz",
|
||||
"http://bazel-mirror.storage.googleapis.com/github.com/google/highwayhash/archive/dfcb97ca4fe9277bf9dc1802dd979b071896453b.tar.gz",
|
||||
"https://github.com/google/highwayhash/archive/dfcb97ca4fe9277bf9dc1802dd979b071896453b.tar.gz",
|
||||
],
|
||||
sha256 = "b159a62fb05e5f6a6be20aa0df6a951ebf44a7bb96ed2e819e4e35e17f56854d",
|
||||
strip_prefix = "highwayhash-4bce8fc6a9ca454d9d377dbc4c4d33488bbab78f",
|
||||
sha256 = "0f30a15b1566d93f146c8d149878a06e91d9bb7ec2cfd76906df62a82be4aac9",
|
||||
strip_prefix = "highwayhash-dfcb97ca4fe9277bf9dc1802dd979b071896453b",
|
||||
build_file = str(Label("//third_party:highwayhash.BUILD")),
|
||||
)
|
||||
|
||||
native.new_http_archive(
|
||||
|
32
third_party/highwayhash.BUILD
vendored
Normal file
32
third_party/highwayhash.BUILD
vendored
Normal file
@ -0,0 +1,32 @@
|
||||
# Description:
|
||||
# SipHash and HighwayHash: cryptographically-strong pseudorandom functions
|
||||
|
||||
licenses(["notice"]) # Apache 2.0
|
||||
|
||||
exports_files(["LICENSE"])
|
||||
|
||||
cc_library(
|
||||
name = "sip_hash",
|
||||
srcs = ["highwayhash/sip_hash.cc"],
|
||||
hdrs = [
|
||||
"highwayhash/sip_hash.h",
|
||||
"highwayhash/state_helpers.h",
|
||||
],
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [
|
||||
":arch_specific",
|
||||
":compiler_specific",
|
||||
],
|
||||
)
|
||||
|
||||
cc_library(
|
||||
name = "arch_specific",
|
||||
srcs = ["highwayhash/arch_specific.cc"],
|
||||
hdrs = ["highwayhash/arch_specific.h"],
|
||||
deps = [":compiler_specific"],
|
||||
)
|
||||
|
||||
cc_library(
|
||||
name = "compiler_specific",
|
||||
hdrs = ["highwayhash/compiler_specific.h"],
|
||||
)
|
Loading…
Reference in New Issue
Block a user