X-Git-Url: http://git.samba.org/?a=blobdiff_plain;f=source3%2Flib%2Futil.c;h=46be349a2c22d0253642eaecc72ea96e35f078af;hb=e47dd1ed1a59d9fc721eeae0a9bb0f80e33be4c8;hp=ee45da0900478a88a98389495472f2c4a88a47de;hpb=820628a6d06c715273ae221c926e1c1e7d7e8385;p=samba.git diff --git a/source3/lib/util.c b/source3/lib/util.c index ee45da09004..46be349a2c2 100644 --- a/source3/lib/util.c +++ b/source3/lib/util.c @@ -1997,17 +1997,8 @@ const char *tab_depth(int level, int depth) int str_checksum(const char *s) { - int res = 0; - int c; - int i=0; - - while(*s) { - c = *s; - res ^= (c << (i % 15)) ^ (c >> (15-(i%15))); - s++; - i++; - } - return(res); + TDB_DATA key = string_tdb_data(s); + return jenkins_hash(&key); } /*****************************************************************