You appear to be a bot. Output may be restricted
Description
Returns a string of the required length containing random characters. Note that the maximum possible string length is 32.
Usage
$string = rand_str( $len );
Parameters
- $len
- ( int ) optional default: 32 – Optional. The required length. Default 32.
Returns
string The string.
Source
File name: wordpress-develop-tests/phpunit/includes/utils.php
Lines:
1 to 3 of 3
function rand_str( $len = 32 ) { return substr( md5( uniqid( rand() ) ), 0, $len ); }