mirror of
https://github.com/jrconlin/oauthsimple.git
synced 2026-09-14 18:44:04 +00:00
fixed bug where nonce was sometimes 1 character below min
This commit is contained in:
+1
-1
@@ -392,7 +392,7 @@ class OAuthSimple {
|
||||
$cLength = strlen($this->_nonce_chars);
|
||||
for ($i=0; $i < $length; $i++)
|
||||
{
|
||||
$rnum = rand(0,$cLength);
|
||||
$rnum = rand(0,$cLength - 1);
|
||||
$result .= substr($this->_nonce_chars,$rnum,1);
|
||||
}
|
||||
$this->_parameters['oauth_nonce'] = $result;
|
||||
|
||||
Reference in New Issue
Block a user