parameters: (self)
return_statement: return _ffi.buffer(outp, length)[:]
docstring: Retrieve the random value used with the server hello message.
  
          :return: A string representing the state
docstring_summary: Retrieve the random value used with the server hello message.
docstring_tokens: Retrieve the random value used with the server hello message .
function: def server_random(self):
          """
          Retrieve the random value used with the server hello message.
  
          :return: A string representing the state
          """
          session = _lib.SSL_get_session(self._ssl)
          if session == _ffi.NULL:
              return None
          length = _lib.SSL_get_server_random(self._ssl, _ffi.NULL, 0)
          assert length > 0
          outp = _no_zero_allocator("unsigned char[]", length)
          _lib.SSL_get_server_random(self._ssl, outp, length)
          return _ffi.buffer(outp, length)[:]
function_tokens: def server_random ( self ) : session = _lib . SSL_get_session ( self . _ssl ) if session == _ffi . NULL : return None length = _lib . SSL_get_server_random ( self . _ssl , _ffi . NULL , 0 ) assert length > 0 outp = _no_zero_allocator ( "unsigned char[]" , length ) _lib . SSL_get_server_random ( self . _ssl , outp , length ) return _ffi . buffer ( outp , length ) [ : ]