replicas is unsigned
make types the same as used in libchash