mirror of
https://github.com/nginx/nginx.git
synced 2024-12-19 05:33:52 -06:00
use MurmurHash2 for split_clients, because
its distribution is much better than CRC32's one
This commit is contained in:
parent
42f1e1cb96
commit
432760ee4d
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user