diff options
-rw-r--r-- | source3/lib/util.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/source3/lib/util.c b/source3/lib/util.c index 81d2a78d3c..b6128feaf6 100644 --- a/source3/lib/util.c +++ b/source3/lib/util.c @@ -1899,17 +1899,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 tdb_jenkins_hash(&key); } /***************************************************************** |