Make WordPress Core

Changeset 39800 for branches/4.3


Ignore:
Timestamp:
01/11/2017 05:31:59 AM (10 years ago)
Author:
jeremyfelt
Message:

Multisite: Use wp_rand() in signup key creation.

Merges [39795] to the 4.3 branch.

Location:
branches/4.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.3

  • branches/4.3/src/wp-includes/ms-functions.php

    r33184 r39800  
    732732        global $wpdb;
    733733
    734         $key = substr( md5( time() . rand() . $domain ), 0, 16 );
     734        $key = substr( md5( time() . wp_rand() . $domain ), 0, 16 );
    735735        $meta = serialize($meta);
    736736
     
    769769        $user = preg_replace( '/\s+/', '', sanitize_user( $user, true ) );
    770770        $user_email = sanitize_email( $user_email );
    771         $key = substr( md5( time() . rand() . $user_email ), 0, 16 );
     771        $key = substr( md5( time() . wp_rand() . $user_email ), 0, 16 );
    772772        $meta = serialize($meta);
    773773
Note: See TracChangeset for help on using the changeset viewer.