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

git-svn-id: http://svn.automattic.com/wordpress/trunk@7421 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-03-20 19:56:37 +00:00
parent e435fc983f
commit a1154832ff

View File

@ -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)