diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-01-09 17:42:59 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-01-09 17:42:59 +0000 |
commit | 6ee76aec73cfbfacd38f360d4f1e7b46970c5189 (patch) | |
tree | ff1df4c431a059691d86d2635d0f4a5819e58cd4 /src/libutil | |
parent | 07451e8768fc3edaf3410b30cf43ad0a3da0e2d7 (diff) | |
download | rspamd-6ee76aec73cfbfacd38f360d4f1e7b46970c5189.tar.gz rspamd-6ee76aec73cfbfacd38f360d4f1e7b46970c5189.zip |
[Minor] Use deterministic ids for maps
Diffstat (limited to 'src/libutil')
-rw-r--r-- | src/libutil/map.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libutil/map.c b/src/libutil/map.c index 22e78c097..3a7cdc032 100644 --- a/src/libutil/map.c +++ b/src/libutil/map.c @@ -1453,7 +1453,8 @@ rspamd_map_parse_backend (struct rspamd_config *cfg, const gchar *map_line) bk->data.hd = hdata; } - bk->id = rspamd_random_uint64_fast (); + bk->id = rspamd_cryptobox_fast_hash_specific (RSPAMD_CRYPTOBOX_T1HA, + bk->uri, strlen (bk->uri), 0xdeadbabe); return bk; |