Remove errors from Utils::getRandomBytes()

This commit is contained in:
Shoghi Cervantes
2014-10-19 13:44:38 +02:00
parent 3b47513439
commit 34946faf94
3 changed files with 5 additions and 5 deletions

View File

@ -175,7 +175,7 @@ LICENSE;
echo "[?] " . $this->lang->rcon_enable . " (y/N): ";
if(strtolower($this->getInput("n")) === "y"){
$config->set("enable-rcon", true);
$password = substr(base64_encode(Utils::getRandomBytes(20, false)), 3, 10);
$password = substr(base64_encode(@Utils::getRandomBytes(20, false)), 3, 10);
$config->set("rcon.password", $password);
echo "[*] " . $this->lang->rcon_password . ": " . $password . "\n";
}else{