• Модуль: sender
  • Путь к файлу: ~/bitrix/modules/sender/lib/posting/locker.php
  • Класс: BitrixSenderPostingLocker
  • Вызов: Locker::getLockUniqueSalt
static function getLockUniqueSalt($generate = true)
{
	$uniqueSalt = Option::get("main", "server_uniq_id", "");
	if ($uniqueSalt == '' && $generate)
	{
		$uniqueSalt = hash('sha256', uniqid(rand(), true));
		Option::set("main", "server_uniq_id", $uniqueSalt);
	}

	return $uniqueSalt;
}