X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fapignusocialoauthdatastore.php;fp=lib%2Fapignusocialoauthdatastore.php;h=7550ec5f6fa8723e4b240eb6c5724cd08c3d70f7;hb=3cab5b36c14085617e41bbf1313593e4a1336906;hp=d3eec55c9e19b2da015629ff4708519dce82a40d;hpb=7233869298e57a929c14deb52acb96ccdfda57a5;p=quix0rs-gnu-social.git diff --git a/lib/apignusocialoauthdatastore.php b/lib/apignusocialoauthdatastore.php index d3eec55c9e..7550ec5f6f 100644 --- a/lib/apignusocialoauthdatastore.php +++ b/lib/apignusocialoauthdatastore.php @@ -264,8 +264,8 @@ class ApiGNUsocialOAuthDataStore extends OAuthDataStore $at = new Token(); $at->consumer_key = $consumer->key; - $at->tok = common_good_rand(16); - $at->secret = common_good_rand(16); + $at->tok = common_random_hexstr(16); + $at->secret = common_random_hexstr(16); $at->type = 1; // access $at->verifier = $verifier; $at->verified_callback = $rt->verified_callback; // 1.0a @@ -392,8 +392,8 @@ class ApiGNUsocialOAuthDataStore extends OAuthDataStore { $t = new Token(); $t->consumer_key = $consumer->key; - $t->tok = common_good_rand(16); - $t->secret = common_good_rand(16); + $t->tok = common_random_hexstr(16); + $t->secret = common_random_hexstr(16); $t->type = 0; // request $t->state = 0; // unauthorized $t->verified_callback = $callback; @@ -402,7 +402,7 @@ class ApiGNUsocialOAuthDataStore extends OAuthDataStore // six digit pin $t->verifier = mt_rand(0, 9999999); } else { - $t->verifier = common_good_rand(8); + $t->verifier = common_random_hexstr(8); } $t->created = common_sql_now();