OAuthSimple::_getNonce PHP Method

_getNonce() private method

private _getNonce ( $length = 5 )
    private function _getNonce($length = 5)
    {
        $result = '';
        $cLength = strlen($this->_nonce_chars);
        for ($i = 0; $i < $length; $i++) {
            $rnum = rand(0, $cLength - 1);
            $result .= substr($this->_nonce_chars, $rnum, 1);
        }
        $this->_parameters['oauth_nonce'] = $result;
        return $result;
    }