use MurmurHash2 for split_clients, because

its distribution is much better than CRC32's one
This commit is contained in:
Igor Sysoev 2011-04-15 10:59:57 +00:00
parent 42f1e1cb96
commit 432760ee4d

View File

@ -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;