Changeset 57749
- Timestamp:
- 03/02/2024 12:53:53 PM (10 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/utils.php
r57665 r57749 7 7 * the maximum possible string length is 32. 8 8 * 9 * @param int $len Optional. The required length. Default 32.9 * @param int $length Optional. The required length. Default 32. 10 10 * @return string The string. 11 11 */ 12 function rand_str( $len = 32 ) {13 return substr( md5( uniqid( rand() ) ), 0, $len );12 function rand_str( $length = 32 ) { 13 return substr( md5( uniqid( rand() ) ), 0, $length ); 14 14 } 15 15 … … 17 17 * Returns a string of the required length containing random characters. 18 18 * 19 * @param int $len The required length.19 * @param int $length The required length. 20 20 * @return string The string. 21 21 */
Note: See TracChangeset
for help on using the changeset viewer.