refer to generateHash on the instance not the prototype