mirror of
https://github.com/nginx/nginx.git
synced 2026-08-30 06:58:42 +00: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue