optionally use only one hash function