Example #1
0
 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)
Example #2
0
    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
Example #3
0
 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)
Example #4
0
    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