diff options
author | Igor Sysoev <igor@sysoev.ru> | 2011-04-15 10:59:57 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2011-04-15 10:59:57 +0000 |
commit | 432760ee4d56dd6998baa66201e2c72c1dbc8038 (patch) | |
tree | 7f4bb83fd80c42bccd2c704868207d09e1741c1e /src/http/modules/ngx_http_split_clients_module.c | |
parent | 42f1e1cb96b510d1fa1abad99a5294a37b750d99 (diff) | |
download | nginx-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.c | 2 |
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; |