]> source.dussan.org Git - rspamd.git/commitdiff
[Feature] Use mumhash for words hashing
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 11 May 2016 14:01:04 +0000 (15:01 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 11 May 2016 14:01:04 +0000 (15:01 +0100)
src/libmime/message.c

index d1fca6b870087dc48df6c215db423705899205e1..d9e8dd18e249f745504fee71aa28aa556683290d 100644 (file)
@@ -1079,7 +1079,7 @@ rspamd_normalize_text_part (struct rspamd_task *task,
                                 * We use static hash seed if we would want to use that in shingles
                                 * computation in future
                                 */
-                               h = rspamd_cryptobox_fast_hash_specific (RSPAMD_CRYPTOBOX_XXHASH64,
+                               h = rspamd_cryptobox_fast_hash_specific (RSPAMD_CRYPTOBOX_MUMHASH,
                                                w->begin, w->len, words_hash_seed);
                                g_array_append_val (part->normalized_hashes, h);
                        }