computes a hash string from id, to be used in hash tables as a HashFunc
id
an identifier string
a new hash