From: Vsevolod Stakhov Date: Wed, 11 May 2016 14:01:04 +0000 (+0100) Subject: [Feature] Use mumhash for words hashing X-Git-Tag: 1.3.0~493 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ec82bfc93c4142c2d8d4ce2591f414284c322505;p=thirdparty%2Frspamd.git [Feature] Use mumhash for words hashing --- diff --git a/src/libmime/message.c b/src/libmime/message.c index d1fca6b870..d9e8dd18e2 100644 --- a/src/libmime/message.c +++ b/src/libmime/message.c @@ -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); }