generate an id which is an hash