aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/bloom.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-10-31 23:48:05 +0300
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-10-31 23:48:05 +0300
commit13d6aedafcd6a8ac9e8d5429e096bdfeb61b06d2 (patch)
tree821f79c3da531f872407defccf3474f08f7b8eb9 /src/libutil/bloom.c
parentaac4ef501dccb2f624e7ab4c34e2e0ab2f18f01a (diff)
downloadrspamd-13d6aedafcd6a8ac9e8d5429e096bdfeb61b06d2.tar.gz
rspamd-13d6aedafcd6a8ac9e8d5429e096bdfeb61b06d2.zip
Fix hash function invocation.
Diffstat (limited to 'src/libutil/bloom.c')
-rw-r--r--src/libutil/bloom.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libutil/bloom.c b/src/libutil/bloom.c
index c3e8b4c8e..1b267f358 100644
--- a/src/libutil/bloom.c
+++ b/src/libutil/bloom.c
@@ -135,7 +135,7 @@ rspamd_bloom_del (rspamd_bloom_filter_t * bloom, const gchar *s)
}
len = strlen (s);
for (n = 0; n < bloom->nfuncs; ++n) {
- v = XXH32 (s, len, bloom->seeds[n]) % bloom->asize;
+ v = XXH64 (s, len, bloom->seeds[n]) % bloom->asize;
DECBIT (bloom->a, v, t);
}
@@ -154,7 +154,7 @@ rspamd_bloom_check (rspamd_bloom_filter_t * bloom, const gchar *s)
}
len = strlen (s);
for (n = 0; n < bloom->nfuncs; ++n) {
- v = XXH32 (s, len, bloom->seeds[n]) % bloom->asize;
+ v = XXH64 (s, len, bloom->seeds[n]) % bloom->asize;
if (!(GETBIT (bloom->a, v))) {
return FALSE;
}