]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Use xxhash indirectly
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 23 May 2016 09:10:35 +0000 (10:10 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 23 May 2016 09:10:35 +0000 (10:10 +0100)
src/libserver/re_cache.c

index 3e308415db2f915f5b8a151259a98812c011cf55..77f97c97f716f77de9b9960bc22323db88a808b1 100644 (file)
@@ -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;