WordPress.org

Make WordPress Core

Ticket #6293: phpass-uniqid-r7392.patch

File phpass-uniqid-r7392.patch, 444 bytes (added by tellyworth, 10 years ago)
  • wordpress/wp-includes/class-phpass.php

     
    4848
    4949                $this->portable_hashes = $portable_hashes;
    5050
    51                 $this->random_state = microtime() . getmypid();
     51                $this->random_state = md5(uniqid(rand(), true));
    5252        }
    5353
    5454        function get_random_bytes($count)