]> git.mxchange.org Git - friendica.git/commitdiff
Use the utility instead.
authordew-git <55564947+dew-git@users.noreply.github.com>
Fri, 11 Oct 2019 04:43:32 +0000 (20:43 -0800)
committerdew-git <55564947+dew-git@users.noreply.github.com>
Fri, 11 Oct 2019 04:43:32 +0000 (20:43 -0800)
library/OAuth1.php
src/Network/FKOAuthDataStore.php

index 723f6592edc25d4fe50b7de24755930dd36ebe7b..e3ca246467c258138094e2c5e0c3dd1e33b03c18 100644 (file)
@@ -528,7 +528,7 @@ class OAuthRequest
    */
   private static function generate_nonce()
   {
-    return bin2hex(random_bytes(16));
+    return Friendica\Util\Strings::getRandomHex(32);
   }
 }
 
index 9fba89685d72871c923ca28ff3929fd75c34be9f..e3ee68d9c752f256772bc0a52268ad1fc59f1ff2 100644 (file)
@@ -29,7 +29,7 @@ class FKOAuthDataStore extends OAuthDataStore
         */
        private static function genToken()
        {
-               return bin2hex(random_bytes(16));
+               return Friendica\Util\Strings::getRandomHex(32);
        }
 
        /**