Remove use of deprecated Utils::getRandomBytes(16) (#3)

Whichever guy did that, somehow this one just got missed out?
This commit is contained in:
SOFe 2016-10-01 23:08:59 +08:00 committed by Dylan K. Taylor
parent 7c41aa66f1
commit 39f731aa06

View File

@ -1531,7 +1531,7 @@ class Server{
}
$this->logger->info($this->getLanguage()->translateString("pocketmine.server.networkStart", [$this->getIp() === "" ? "*" : $this->getIp(), $this->getPort()]));
define("BOOTUP_RANDOM", @Utils::getRandomBytes(16));
define("BOOTUP_RANDOM", random_bytes(16));
$this->serverID = Utils::getMachineUniqueId($this->getIp() . $this->getPort());
$this->getLogger()->debug("Server unique id: " . $this->getServerUniqueId());