diff options
Diffstat (limited to 'wp-includes/class-phpass.php')
-rw-r--r-- | wp-includes/class-phpass.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/wp-includes/class-phpass.php b/wp-includes/class-phpass.php index 656caa3..c964b09 100644 --- a/wp-includes/class-phpass.php +++ b/wp-includes/class-phpass.php @@ -48,7 +48,8 @@ class PasswordHash { $this->portable_hashes = $portable_hashes; - $this->random_state = microtime() . getmypid(); + $this->random_state = microtime() . (function_exists('getmypid') ? getmypid() : '') . uniqid(rand(), TRUE); + } function get_random_bytes($count) |