def __generate_rts_token(self): ''' Generate real time server (rts) token for current user id ''' return generate_simple_token(5)
def __create_session(self): ''' create session ''' self.session_name = generate_simple_token(nchars=5) return self.session_name