You appear to be a bot. Output may be restricted
Description
Returns a string of the required length containing random characters.
Usage
$string = rand_long_str( $length );
Parameters
- $length
- ( mixed ) required –
Returns
string The string.
Source
File name: wordpress-develop-tests/phpunit/includes/utils.php
Lines:
1 to 11 of 11
function rand_long_str( $length ) { $chars = 'abcdefghijklmnopqrstuvwxyz'; $string = ''; for ( $i = 0; $i < $length; $i++ ) { $rand = rand( 0, strlen( $chars ) - 1 ); $string .= substr( $chars, $rand, 1 ); } return $string; }