From: Igor Sysoev Date: Fri, 15 Apr 2011 10:59:57 +0000 (+0000) Subject: use MurmurHash2 for split_clients, because X-Git-Tag: release-1.0.1~13 X-Git-Url: http://git.kaiwu.me/postgresql/log/contrib/postgres_fdw/static/gitweb.js?a=commitdiff_plain;h=432760ee4d56dd6998baa66201e2c72c1dbc8038;p=nginx.git use MurmurHash2 for split_clients, because its distribution is much better than CRC32's one --- 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;