Use the utility instead.
This commit is contained in:
parent
811cdcdfcb
commit
dc01bdbc80
2 changed files with 2 additions and 2 deletions
|
@ -528,7 +528,7 @@ class OAuthRequest
|
|||
*/
|
||||
private static function generate_nonce()
|
||||
{
|
||||
return bin2hex(random_bytes(16));
|
||||
return Friendica\Util\Strings::getRandomHex(32);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@ class FKOAuthDataStore extends OAuthDataStore
|
|||
*/
|
||||
private static function genToken()
|
||||
{
|
||||
return bin2hex(random_bytes(16));
|
||||
return Friendica\Util\Strings::getRandomHex(32);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue