mirror of
git://develop.git.wordpress.org/
synced 2025-03-11 07:29:45 +01:00
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:
parent
cdec5906e2
commit
bb13754ad2
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user