diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-05-23 10:10:35 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-05-23 10:10:35 +0100 |
commit | 21d10d44caed825b3c6f06faf92715de98c7dca3 (patch) | |
tree | ec01909c8da7cd022f536a3c3d0505d8a1cc7ed6 /src | |
parent | a2de3547f790b500c8557502db1e79485307945a (diff) | |
download | rspamd-21d10d44caed825b3c6f06faf92715de98c7dca3.tar.gz rspamd-21d10d44caed825b3c6f06faf92715de98c7dca3.zip |
[Minor] Use xxhash indirectly
Diffstat (limited to 'src')
-rw-r--r-- | src/libserver/re_cache.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libserver/re_cache.c b/src/libserver/re_cache.c index 3e308415d..77f97c97f 100644 --- a/src/libserver/re_cache.c +++ b/src/libserver/re_cache.c @@ -1494,7 +1494,8 @@ rspamd_re_cache_compile_hyperscan (struct rspamd_re_cache *cache, * crc - 8 bytes checksum * <hyperscan blob> */ - crc = XXH64 (hs_serialized, serialized_len, 0xdeadbabe); + crc = rspamd_cryptobox_fast_hash_specific (RSPAMD_CRYPTOBOX_XXHASH64, + hs_serialized, serialized_len, 0xdeadbabe); if (cache->vectorized_hyperscan) { iov[0].iov_base = (void *) rspamd_hs_magic_vector; |