aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-05-23 10:10:35 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-05-23 10:10:35 +0100
commit21d10d44caed825b3c6f06faf92715de98c7dca3 (patch)
treeec01909c8da7cd022f536a3c3d0505d8a1cc7ed6 /src
parenta2de3547f790b500c8557502db1e79485307945a (diff)
downloadrspamd-21d10d44caed825b3c6f06faf92715de98c7dca3.tar.gz
rspamd-21d10d44caed825b3c6f06faf92715de98c7dca3.zip
[Minor] Use xxhash indirectly
Diffstat (limited to 'src')
-rw-r--r--src/libserver/re_cache.c3
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;