Add uniform hash function