Yes, first you generate names with gensamehash (very slow) and then make many directories with mksamehash (relatively fast).