Use uniqid if getmypid is disabled. Props Solar Designer. fixes #6293

git-svn-id: https://develop.svn.wordpress.org/trunk@7421 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2008-03-20 19:56:37 +00:00
parent cdec5906e2
commit bb13754ad2
1 changed files with 2 additions and 1 deletions

View File

@ -48,7 +48,8 @@ class PasswordHash {
$this->portable_hashes = $portable_hashes; $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) function get_random_bytes($count)