def generate_hash(self): '''Generates a hashed value from user-specific properties.''' tmpstr = "%s%s%s" % (self.user_agent, self.screen_resolution, self.screen_colour_depth) return utils.generate_hash(tmpstr)
def _generate_domain_hash(self): hash_val = 1 if self.tracker.allow_hash: hash_val = utils.generate_hash(self.tracker.domain_name) return hash_val