Add comment to generateHash method