Changeset 36272 for trunk/tests/phpunit/includes/utils.php
- Timestamp:
- 01/13/2016 01:24:46 AM (10 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/includes/utils.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/utils.php
r36243 r36272 5 5 function rand_str($len=32) { 6 6 return substr(md5(uniqid(rand())), 0, $len); 7 } 8 9 function rand_long_str( $length ) { 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; 7 19 } 8 20
Note: See TracChangeset
for help on using the changeset viewer.