Source of file Utils.php
Size: 0,695 Bytes - Last Modified: 2022-02-21T10:01:51+00:00
/var/www/docs.ssmods.com/process/src/src/Utils.php
123456789101112131415161718192021222324252627282930313233 | <?php namespace AntonyThorpe\SilverShopUnleashed; /** * Utility */ class Utils { /** * Create a global unique id * * @return string Guid */ public static function createGuid() { if (function_exists('com_create_guid') === true) { return trim(com_create_guid(), '{}'); } return strtolower(sprintf( '%04X%04X-%04X-%04X-%04X-%04X%04X%04X', mt_rand(0, 65535), mt_rand(0, 65535), mt_rand(0, 65535), mt_rand(16384, 20479), mt_rand(32768, 49151), mt_rand(0, 65535), mt_rand(0, 65535), mt_rand(0, 65535) )); } } |