Returns random basket popup identifier

@return string
164819
public function getPopupIdentRand()
    {
        if (($sValue = $this->getViewConfigParam('popupidentrand')) === null) {
            $sValue = md5(time());
            $this->setViewConfigParam('popupidentrand', $sValue);
        }

        return $sValue;
    }
464040
public function GetToBasketLinkForExternalCalls()
    {
        return 'http://'.$this->getPortalDomainService()->getActiveDomain()->getInsecureDomainName().'/'.TdbShopArticle::URL_EXTERNAL_TO_BASKET_REQUEST.'/id/'.urlencode($this->id);
    }
573579
public static function getUserDefaultLocation()
    {
        try {
            $user = self::getLoggedInUser();
            if ($user->PrimaryLocation) {
                return $user->PrimaryLocation;
            }

            if ($user->Locations && $user->Locations->count()) {
                $user->PrimaryLocationID = $user->Locations[0]->UniqueIdentifier;
                $user->save();
                return $user->PrimaryLocation;
            }
        } catch (NotLoggedInException $ex) {
        }

        $basket = Basket::getCurrentBasket();
        if ($basket->Locations && $basket->Locations->count()) {
            if (isset($user)) {
                $user->PrimaryLocationID = $basket->Locations[0];
                $user->save();
                return $user->PrimaryLocation;
            }
            return $basket->Locations[0];
        }
        return null;
    }
706188
protected function getRandomStr()
    {
        $str = '';
        $strPol = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyz';
        $max = strlen($strPol) - 1;
        for ($i = 0; $i < 16; $i++) {
            $str .= $strPol[mt_rand(0, $max)];
        }
        return $str;
    }
671723
public function getUid()
    {
        $session_user_id = $this->user->getId();

        if (!empty($session_user_id)) {
            return (string) $session_user_id;
        }

        $cookie_name = $this->getCookieUserName();
        $cookie_user_id = $this->request->cookie($cookie_name, '', 'string');

        if (!empty($cookie_user_id)) {
            return $cookie_user_id;
        }

        $generated_user_id = '_' . gplcart_string_random(6);
        $this->request->setCookie($cookie_name, $generated_user_id, $this->getCookieLifespan());
        return $generated_user_id;
    }
1366107
protected function getCallingUrl()
    {
        $oGlobal = TGlobal::instance();
        $sCallingURL = $oGlobal->GetUserData('sourceurl');
        if (true === empty($sCallingURL)) {
            //the method will most likely be called on a basket page, in this case, ignore it...
            $activePageService = $this->getActivePageService();
            $oActivePage = $activePageService->getActivePage();
            $checkoutSystemPage = $this->getSystemPageService()->getSystemPage('checkout');
            if (null === $checkoutSystemPage || $checkoutSystemPage->fieldCmsTreeId !== $oActivePage->GetMainTreeId()) {
                $aExcludeParams = array('module_fnc');
                // we may be on a category list or an item page... so ignore those parameters, too
                $aExcludeParams[] = MTShopArticleCatalogCore::URL_CATEGORY_ID;
                $aExcludeParams[] = MTShopArticleCatalogCore::URL_ITEM_ID;
                $aExcludeParams[] = MTShopBasketCore::URL_REQUEST_PARAMETER;

                $sCallingURL = $activePageService->getLinkToActivePageRelative(array(), $aExcludeParams);
            } else {
                //basket, so try to get from session
                if (isset($_SESSION[MTShopOrderWizardCore::SESSION_PARAM_NAME]) && !empty($_SESSION[MTShopOrderWizardCore::SESSION_PARAM_NAME])) {
                    $sCallingURL = $_SESSION[MTShopOrderWizardCore::SESSION_PARAM_NAME];
                } else {
                    $portal = $this->getPortalDomainService()->getActivePortal();
                    if (null !== $portal) {
                        $sCallingURL = $this->getPageService()->getLinkToPortalHomePageAbsolute();
                    } else {
                        $sCallingURL = '/';
                    }
                }
            }
        }

        return $sCallingURL;
    }
801137
public function random()
    {
        $count = $this->count();
        switch ($count) {
            case 0:
                return null;
            case 1:
                return $this->one();
            default:
                $cursor = $this->skip(mt_rand(0, $count - 1))->limit(1);
                $cursor->rewind();
                return $cursor->current();
        }
    }
464385
public function getToBasketLink()
    {
        if ($this->_sToBasketLink == null) {
            $myConfig = \OxidEsales\Eshop\Core\Registry::getConfig();

            if (\OxidEsales\Eshop\Core\Registry::getUtils()->isSearchEngine()) {
                $this->_sToBasketLink = $this->getLink();
            } else {
                // and assign special article values
                $this->_sToBasketLink = $myConfig->getShopHomeUrl();

                // override some classes as these should never showup
                $actControllerId = \OxidEsales\Eshop\Core\Registry::getConfig()->getRequestControllerId();
                if ($actControllerId == 'thankyou') {
                    $actControllerId = 'basket';
                }
                $this->_sToBasketLink .= 'cl=' . $actControllerId;

                // this is not very correct
                if ($sActCat = \OxidEsales\Eshop\Core\Registry::getConfig()->getRequestParameter('cnid')) {
                    $this->_sToBasketLink .= '&amp;cnid=' . $sActCat;
                }

                $this->_sToBasketLink .= '&amp;fnc=tobasket&amp;aid=' . $this->getId() . '&amp;anid=' . $this->getId();

                if ($sTpl = basename(\OxidEsales\Eshop\Core\Registry::getConfig()->getRequestParameter('tpl'))) {
                    $this->_sToBasketLink .= '&amp;tpl=' . $sTpl;
                }
            }
        }

        return $this->_sToBasketLink;
    }
884522
public function get_description() {
        // Note that username could be any random user input.
        $username = s($this->other['username']);
        $reasonid = $this->other['reason'];
        $loginfailed = 'Login failed for user';
        switch ($reasonid){
            case 1:
                return $loginfailed." '{$username}'. User does not exist (error ID '{$reasonid}').";
            case 2:
                return $loginfailed." '{$username}'. User is suspended (error ID '{$reasonid}').";
            case 3:
                return $loginfailed." '{$username}'. Most likely the password did not match (error ID '{$reasonid}').";
            case 4:
                return $loginfailed." '{$username}'. User is locked out (error ID '{$reasonid}').";
            case 5:
                return $loginfailed." '{$username}'. User is not authorised (error ID '{$reasonid}').";
            default:
                return $loginfailed." '{$username}', error ID '{$reasonid}'.";

        }
    }
1327352
public function random()
    {
        $keys = array_keys($this->elements);

        return $this->elements[$keys[rand(0, sizeof($keys) - 1)]];
    }
1147801
protected function get_filepicker_unique_id() : string {
        if (empty($this->filepickeruniqueid)) {
            $this->filepickeruniqueid = uniqid();
        }
        return $this->filepickeruniqueid;
    }
1238497
public function getUniqueId()
    {
        $parameters = $this->getParameters();
        unset($parameters['module']);
        unset($parameters['action']);

        return WidgetsList::getWidgetUniqueId($this->getModule(), $this->getAction(), $parameters);
    }
1186866
protected function _getPaymentId()
    {
        /** @var OxpsPaymorrowOxBasket|oxBasket $this */

        $sId = (string) $this->getPaymentId();

        if ( !empty( $sId ) ) {
            $sId = $this->_toUtf( $sId );
        } else {
            $sId = 'PaymentId';
        }

        return $sId;
    }
180301
private function getRandomBoard()
    {
        if ($this->boards === null) {
            $this->boards = Board::all();
        }

        return $this->boards->random();
    }
179368
private function get_identify() {
		$products = $this->get_products( $this->current_page );
		$cache_key = $this->get_cache_key( $products );

		$identify_data = get_transient( $cache_key );
		if ( ! $identify_data ) {
			$identifier = new Yoast_HelpScout_Beacon_Identifier( $this->get_products( $this->current_page ) );
			$identify_data = $identifier->get_data();

			if ( ! defined( 'WP_DEBUG' ) || ! WP_DEBUG ) {
				set_transient( $cache_key, $identify_data, DAY_IN_SECONDS );
			}
		}

		return $identify_data;
	}
36734
public function getClientId()
    {
        $clientId = $this->getOption('client_id');
        if ($clientId) {
            return $clientId;
        }

        // collect user specific data
        if (isset($_COOKIE['_ga'])) {
            $gaCookie = explode('.', $_COOKIE['_ga']);
            if (isset($gaCookie[2])) {
                // check if uuid
                if ($this->checkUuid($gaCookie[2])) {
                    // uuid set in cookie
                    return $gaCookie[2];
                } elseif (isset($gaCookie[2]) && isset($gaCookie[3])) {
                    // google old client id
                    return $gaCookie[2] . '.' . $gaCookie[3];
                }
            }
        }

        // nothing found - fallback
        $generateClientId = $this->getOption('client_create_random_id');
        if ($generateClientId) {
            return $this->generateUuid();
        }

        return $this->getOption('client_fallback_id');
    }
1365021
public function getId()
    {
        if ( empty( $this->id ) )
        {
            if ( $this->getColumnsUseTranslation() )
            {
                $id = trim( $this->getColumnTranslatePrefix() . '.' .
                            $this->getColumnTranslatePostfix(), '.' );

                if ( ! empty( $id ) )
                {
                    return str_replace( '.', '_', $id );
                }
            }

            $this->id = String::generateRandom();
        }

        return $this->id;
    }