aboutsummaryrefslogtreecommitdiff
path: root/src/http/modules/ngx_http_split_clients_module.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2011-04-15 10:59:57 +0000
committerIgor Sysoev <igor@sysoev.ru>2011-04-15 10:59:57 +0000
commit432760ee4d56dd6998baa66201e2c72c1dbc8038 (patch)
tree7f4bb83fd80c42bccd2c704868207d09e1741c1e /src/http/modules/ngx_http_split_clients_module.c
parent42f1e1cb96b510d1fa1abad99a5294a37b750d99 (diff)
downloadnginx-432760ee4d56dd6998baa66201e2c72c1dbc8038.tar.gz
nginx-432760ee4d56dd6998baa66201e2c72c1dbc8038.zip
use MurmurHash2 for split_clients, because
its distribution is much better than CRC32's one
Diffstat (limited to 'src/http/modules/ngx_http_split_clients_module.c')
-rw-r--r--src/http/modules/ngx_http_split_clients_module.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/modules/ngx_http_split_clients_module.c b/src/http/modules/ngx_http_split_clients_module.c
index c28b8f931..a43fac519 100644
--- a/src/http/modules/ngx_http_split_clients_module.c
+++ b/src/http/modules/ngx_http_split_clients_module.c
@@ -87,7 +87,7 @@ ngx_http_split_clients_variable(ngx_http_request_t *r,
return NGX_OK;
}
- hash = ngx_crc32_short(val.data, val.len);
+ hash = ngx_murmur_hash2(val.data, val.len);
part = ctx->parts.elts;