Make WordPress Core

Changeset 42373


Ignore:
Timestamp:
12/04/2017 10:39:29 PM (7 years ago)
Author:
DrewAPicture
Message:

Docs: Improve the usefulness of docs for wp_generate_password() by noting the use of wp_rand() vs rand() or mt_rand().

Props webdevmattcrom.
Fixes #42782.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/pluggable.php

    r42343 r42373  
    23132313     * Generates a random password drawn from the defined set of characters.
    23142314     *
     2315     * Uses wp_rand() is used to create passwords with far less predictability
     2316     * than similar native PHP functions like `rand()` or `mt_rand()`.
     2317     *
    23152318     * @since 2.5.0
    23162319     *
     
    23492352if ( ! function_exists( 'wp_rand' ) ) :
    23502353    /**
    2351      * Generates a random number
     2354     * Generates a random number.
    23522355     *
    23532356     * @since 2.6.2
Note: See TracChangeset for help on using the changeset viewer.