def rid():
 return (struct.unpack('@Q', os.urandom(8))[0] & _WAMP_ID_MASK)

def rid ( ) : return ( struct . unpack ( '@Q' , os . urandom ( 8 ) ) [ 0 ] & _WAMP_ID_MASK )
generate a new random integer id from range **[0 .