X7ROOT File Manager
Current Path:
/home/prisjneg/public_html/vendor/symfony/uid
home
/
prisjneg
/
public_html
/
vendor
/
symfony
/
uid
/
π
..
π
AbstractUid.php
(4.9 KB)
π
BinaryUtil.php
(5.9 KB)
π
CHANGELOG.md
(960 B)
π
Command
π
Factory
π
LICENSE
(1.04 KB)
π
MaxUlid.php
(383 B)
π
MaxUuid.php
(415 B)
π
NilUlid.php
(383 B)
π
NilUuid.php
(472 B)
π
README.md
(604 B)
π
TimeBasedUidInterface.php
(519 B)
π
Ulid.php
(6.86 KB)
π
Uuid.php
(5.71 KB)
π
UuidV1.php
(2.04 KB)
π
UuidV3.php
(592 B)
π
UuidV4.php
(932 B)
π
UuidV5.php
(592 B)
π
UuidV6.php
(2.02 KB)
π
UuidV7.php
(5 KB)
π
UuidV8.php
(573 B)
π
composer.json
(922 B)
Editing: UuidV4.php
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Uid; /** * A v4 UUID contains a 122-bit random number. * * @author GrΓ©goire Pineau <lyrixx@lyrixx.info> */ class UuidV4 extends Uuid { protected const TYPE = 4; public function __construct(?string $uuid = null) { if (null === $uuid) { $uuid = random_bytes(16); $uuid[6] = $uuid[6] & "\x0F" | "\x40"; $uuid[8] = $uuid[8] & "\x3F" | "\x80"; $uuid = bin2hex($uuid); $this->uid = substr($uuid, 0, 8).'-'.substr($uuid, 8, 4).'-'.substr($uuid, 12, 4).'-'.substr($uuid, 16, 4).'-'.substr($uuid, 20, 12); } else { parent::__construct($uuid, true); } } }
Upload File
Create Folder