def bytes(num_bytes):
 if (not isinstance(num_bytes, _integer_types)):
  raise TypeError('num_bytes must be an integer')
 if (num_bytes < 0):
  raise ValueError('num_bytes must not be negative')
 result_buffer = _ffi.new('char[]', num_bytes)
 result_code = _lib.RAND_bytes(result_buffer, num_bytes)
 if (result_code == (-1)):
  _raise_current_error()
 return _ffi.buffer(result_buffer)[:]

def bytes ( num_bytes ) : if ( not isinstance ( num_bytes , _integer_types ) ) : raise TypeError ( 'num_bytes must be an integer' ) if ( num_bytes < 0 ) : raise ValueError ( 'num_bytes must not be negative' ) result_buffer = _ffi . new ( 'char[]' , num_bytes ) result_code = _lib . RAND_bytes ( result_buffer , num_bytes ) if ( result_code == ( - 1 ) ) : _raise_current_error ( ) return _ffi . buffer ( result_buffer ) [ : ]
show the input as pretty printed bytes .