#NEWLINE# def rand_str( size = 9999999999 , hash_type = None ) : #NEWLINE# #INDENT# "\n    Return a random string\n\n        size\n            size of the string to generate\n        hash_type\n            hash type to use\n\n            .. versionadded:: 2015.5.2\n\n    CLI Example:\n\n    .. code-block:: bash\n\n        salt '*' test.rand_str\n    " #NEWLINE# if ( not hash_type ) : #NEWLINE# #INDENT# hash_type = __opts__ . get ( 'hash_type' , 'md5' ) #NEWLINE# #UNINDENT# return salt . utils . rand_str ( hash_type = hash_type , size = size )