$this->portable_hashes = $portable_hashes;
- $this->random_state = microtime() . uniqid(rand(), TRUE); // removed getmypid() for compability reasons
+ $this->random_state = microtime() . uniqid(rand(), TRUE); // removed getmypid() for compatibility reasons
}
function get_random_bytes($count)
if ($hash[0] == '*')
$hash = crypt($password, $stored_hash);
- return $hash == $stored_hash;
+ return $hash === $stored_hash;
}
}