Your IP : 216.73.216.86


Current Path : /var/www/homesaver/www/bitrix/modules/ui/lib/NotificationManager/Helpers/
Upload File :
Current File : /var/www/homesaver/www/bitrix/modules/ui/lib/NotificationManager/Helpers/uuid.php

<?php

namespace Bitrix\UI\NotificationManager\Helpers;

final class Uuid
{
	public static function getV4(): string
	{
		return sprintf('%04x%04x-%04x-%04x-%04x-%04x%04x%04x',
			random_int(0, 0xffff),
			random_int(0, 0xffff),
			random_int(0, 0xffff),
			random_int(0, 0x0fff) | 0x4000,
			random_int(0, 0x3fff) | 0x8000,
			random_int(0, 0xffff),
			random_int(0, 0xffff),
			random_int(0, 0xffff)
		);
	}
}