Make WordPress Core

Changeset 39801


Ignore:
Timestamp:
01/11/2017 05:32:20 AM (7 years ago)
Author:
jeremyfelt
Message:

Multisite: Use wp_rand() in signup key creation.

Merges [39795] to the 4.2 branch.

Location:
branches/4.2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.2

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

    r32064 r39801  
    711711    global $wpdb;
    712712
    713     $key = substr( md5( time() . rand() . $domain ), 0, 16 );
     713    $key = substr( md5( time() . wp_rand() . $domain ), 0, 16 );
    714714    $meta = serialize($meta);
    715715
     
    746746    $user = preg_replace( '/\s+/', '', sanitize_user( $user, true ) );
    747747    $user_email = sanitize_email( $user_email );
    748     $key = substr( md5( time() . rand() . $user_email ), 0, 16 );
     748    $key = substr( md5( time() . wp_rand() . $user_email ), 0, 16 );
    749749    $meta = serialize($meta);
    750750
Note: See TracChangeset for help on using the changeset viewer.