(self)
return id
Generate a 'random' hash of 10 alphanumerics (ALL CAPS)
Generate a 'random' hash of 10 alphanumerics (ALL CAPS)
Generate a random hash of 10 alphanumerics ( ALL CAPS )
def random_hash(self):
        """Generate a 'random' hash of 10 alphanumerics (ALL CAPS)"""
        id = self.digest("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ")[-10:]
        while len(id) < 10:
            id = "0" + id
        return id
def random_hash ( self ) : id = self . digest ( "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ" ) [ - 10 : ] while len ( id ) < 10 : id = "0" + id return id