original_string: protected function shared_secret($hash)
      {
          $length = 20;
          if($hash == 'sha256') {
              $length = 256;
          }
          
          $secret = '';
          for($i = 0; $i < $length; $i++) {
              $secret .= mt_rand(0,255);
          }
          
          return $secret;
      }
code: protected function shared_secret($hash)
      {
          $length = 20;
          if($hash == 'sha256') {
              $length = 256;
          }
          
          $secret = '';
          for($i = 0; $i < $length; $i++) {
              $secret .= mt_rand(0,255);
          }
          
          return $secret;
      }
code_tokens: protected function shared_secret ( $ hash ) { $ length = 20 ; if ( $ hash == 'sha256' ) { $ length = 256 ; } $ secret = '' ; for ( $ i = 0 ; $ i < $ length ; $ i ++ ) { $ secret .= mt_rand ( 0 , 255 ) ; } return $ secret ; }
docstring: Generates a random shared secret.
  @return string
docstring_tokens: Generates a random shared secret .