function uuid4($data = null) { $data = $data ?? openssl_random_pseudo_bytes(16); assert(strlen($data) == 16); // Set the version byte to 0x40 (v4) $data[6] = chr(ord($data[6]) & 0x0f | 0x40); // Set the variant byte to 0x80 (DCE/RPC) $data[8] = chr(ord($data[8]) & 0x3f | 0x80); return vsprintf('%s%s-%s-%s-%s-%s%s%s', str_split(bin2hex($data), 4)); }
Такой страницы не сущетвует, или у вас нет к ней доступа.