Make WordPress Core

Ticket #43771: 43771.patch

File 43771.patch, 439 bytes (added by BjornW, 7 years ago)

Replace mt_rand() with wp_rand()

  • wp-includes/user.php

     
    27262726                        return;
    27272727                }
    27282728
    2729                 $hash           = md5( $_POST['email'] . time() . mt_rand() );
     2729                $hash           = md5( $_POST['email'] . time() . wp_rand() );
    27302730                $new_user_email = array(
    27312731                        'hash'     => $hash,
    27322732                        'newemail' => $_POST['email'],