src/wp-includes/pluggable.php 1 location
|
@@ 2187-2189 (lines=3) @@
|
2184 |
|
$chars .= '-_ []{}<>~`+=,.;:/?|'; |
2185 |
|
|
2186 |
|
$password = ''; |
2187 |
|
for ( $i = 0; $i < $length; $i++ ) { |
2188 |
|
$password .= substr($chars, wp_rand(0, strlen($chars) - 1), 1); |
2189 |
|
} |
2190 |
|
|
2191 |
|
/** |
2192 |
|
* Filters the randomly-generated password. |
tests/phpunit/includes/utils.php 1 location
|
@@ 13-16 (lines=4) @@
|
10 |
|
$chars = 'abcdefghijklmnopqrstuvwxyz'; |
11 |
|
$string = ''; |
12 |
|
|
13 |
|
for ( $i = 0; $i < $length; $i++ ) { |
14 |
|
$rand = rand( 0, strlen( $chars ) - 1 ); |
15 |
|
$string .= substr( $chars, $rand, 1 ); |
16 |
|
} |
17 |
|
|
18 |
|
return $string; |
19 |
|
} |