Fix inode generation so nautilus can count total dir size correctly
[samba.git] / source3 / lib / util.c
index ee45da0900478a88a98389495472f2c4a88a47de..46be349a2c22d0253642eaecc72ea96e35f078af 100644 (file)
@@ -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);
 }
 
 /*****************************************************************