Hashing library for hpool