From 432760ee4d56dd6998baa66201e2c72c1dbc8038 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Fri, 15 Apr 2011 10:59:57 +0000 Subject: use MurmurHash2 for split_clients, because its distribution is much better than CRC32's one --- src/http/modules/ngx_http_split_clients_module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/http') 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; -- cgit