Use built-in random_bytes functionality

This commit is contained in:
Tux
2016-08-19 10:40:12 -04:00
committed by Dylan K. Taylor
parent b16f7e4dd5
commit 8e9a078ff9
5 changed files with 12 additions and 104 deletions

View File

@ -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){