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:
parent
e435fc983f
commit
a1154832ff
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue