Make WordPress Core

Changeset 57749

Timestamp:
03/02/2024 12:53:53 PM (5 months ago)
Author:
SergeyBiryukov
Message:

Build/Test Tools: Use a consistent parameter name between rand_str() and rand_long_str().

Follow-up to [36272], [50265].

Props harsh175, sabernhardt.
Fixes #60401.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/includes/utils.php

    r57665 r57749  
    77 * the maximum possible string length is 32.
    88 *
    9  * @param int $len Optional. The required length. Default 32.
     9 * @param int $len Optional. The required length. Default 32.
    1010 * @return string The string.
    1111 */
    12 function rand_str( $len = 32 ) {
    13     return substr( md5( uniqid( rand() ) ), 0, $len );
     12function rand_str( $len = 32 ) {
     13    return substr( md5( uniqid( rand() ) ), 0, $len );
    1414}
    1515
     
    1717 * Returns a string of the required length containing random characters.
    1818 *
    19  * @param int $len The required length.
     19 * @param int $len The required length.
    2020 * @return string The string.
    2121 */
Note: See TracChangeset for help on using the changeset viewer.