Adaptable hash table generator