mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 17:59:48 +00:00
Use built-in random_bytes functionality
This commit is contained in:
@ -65,7 +65,7 @@ class QueryHandler{
|
||||
|
||||
public function regenerateToken(){
|
||||
$this->lastToken = $this->token;
|
||||
$this->token = @Utils::getRandomBytes(16, false);
|
||||
$this->token = random_bytes(16);
|
||||
}
|
||||
|
||||
public static function getTokenString($token, $salt){
|
||||
|
Reference in New Issue
Block a user