original_string: public static function anonymizeUserId($userId)
      {
          $trackerCache = Tracker\Cache::getCacheGeneral();
          $salt = '';
          if (!empty($trackerCache[PrivacyManager::OPTION_USERID_SALT])) {
              $salt = $trackerCache[PrivacyManager::OPTION_USERID_SALT];
          }
          if(empty($salt)) {
              return $userId;
          }
          return sha1($userId . $salt);
      }
code: public static function anonymizeUserId($userId)
      {
          $trackerCache = Tracker\Cache::getCacheGeneral();
          $salt = '';
          if (!empty($trackerCache[PrivacyManager::OPTION_USERID_SALT])) {
              $salt = $trackerCache[PrivacyManager::OPTION_USERID_SALT];
          }
          if(empty($salt)) {
              return $userId;
          }
          return sha1($userId . $salt);
      }
code_tokens: public static function anonymizeUserId ( $ userId ) { $ trackerCache = Tracker \ Cache :: getCacheGeneral ( ) ; $ salt = '' ; if ( ! empty ( $ trackerCache [ PrivacyManager :: OPTION_USERID_SALT ] ) ) { $ salt = $ trackerCache [ PrivacyManager :: OPTION_USERID_SALT ] ; } if ( empty ( $ salt ) ) { return $ userId ; } return sha1 ( $ userId . $ salt ) ; }
docstring: pseudo anonymization as we need to make sure to always generate the same UserId for the same original UserID
  
  @param $userId
  @return string
docstring_tokens: pseudo anonymization as we need to make sure to always generate the same UserId for the same original UserID