def issueTicketAndKey(srvState):
 log.info('Issuing new session ticket and master key.')
 masterKey = mycrypto.strongRandom(const.MASTER_KEY_LENGTH)
 newTicket = SessionTicket(masterKey, srvState).issue()
 return (masterKey + newTicket)

def issueTicketAndKey ( srvState ) : log . info ( 'Issuing new session ticket and master key.' ) masterKey = mycrypto . strongRandom ( const . MASTER_KEY_LENGTH ) newTicket = SessionTicket ( masterKey , srvState ) . issue ( ) return ( masterKey + newTicket )
issue a new session ticket and append it to the according master key .