Mercurial > hg > nginx-quic
changeset 3892:12d8d2f30205
use MurmurHash2 for split_clients, because
its distribution is much better than CRC32's one
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 15 Apr 2011 10:59:57 +0000 |
parents | 203eb026ec07 |
children | 5581586480e9 |
files | src/http/modules/ngx_http_split_clients_module.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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 return NGX_OK; } - hash = ngx_crc32_short(val.data, val.len); + hash = ngx_murmur_hash2(val.data, val.len); part = ctx->parts.elts;