diff src/http/modules/ngx_http_split_clients_module.c @ 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 8bff43217171
children eccd0b66a4ab
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;