Linux unitednationsplay.com 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
nginx/1.20.1
Server IP : 188.130.139.92 & Your IP : 18.117.132.79
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
unp /
vendor /
ramsey /
uuid /
src /
Generator /
Delete
Unzip
Name
Size
Permission
Date
Action
CombGenerator.php
2.78
KB
-rw-r--r--
2018-07-19 09:00
DefaultTimeGenerator.php
4.55
KB
-rw-r--r--
2018-07-19 09:00
MtRandGenerator.php
1.14
KB
-rw-r--r--
2018-07-19 09:00
OpenSslGenerator.php
1.18
KB
-rw-r--r--
2018-07-19 09:00
PeclUuidRandomGenerator.php
1.09
KB
-rw-r--r--
2018-07-19 09:00
PeclUuidTimeGenerator.php
1.13
KB
-rw-r--r--
2018-07-19 09:00
RandomBytesGenerator.php
1.2
KB
-rw-r--r--
2018-07-19 09:00
RandomGeneratorFactory.php
866
B
-rw-r--r--
2018-07-19 09:00
RandomGeneratorInterface.php
1.12
KB
-rw-r--r--
2018-07-19 09:00
RandomLibAdapter.php
1.75
KB
-rw-r--r--
2018-07-19 09:00
SodiumRandomGenerator.php
1.11
KB
-rw-r--r--
2018-07-19 09:00
TimeGeneratorFactory.php
1.9
KB
-rw-r--r--
2018-07-19 09:00
TimeGeneratorInterface.php
1.52
KB
-rw-r--r--
2018-07-19 09:00
Save
Rename
<?php /** * This file is part of the ramsey/uuid library * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @copyright Copyright (c) Ben Ramsey <ben@benramsey.com> * @license http://opensource.org/licenses/MIT MIT * @link https://benramsey.com/projects/ramsey-uuid/ Documentation * @link https://packagist.org/packages/ramsey/uuid Packagist * @link https://github.com/ramsey/uuid GitHub */ namespace Ramsey\Uuid\Generator; use Ramsey\Uuid\Converter\NumberConverterInterface; /** * CombGenerator provides functionality to generate COMB (combined GUID/timestamp) * sequential UUIDs * * @link https://en.wikipedia.org/wiki/Globally_unique_identifier#Sequential_algorithms */ class CombGenerator implements RandomGeneratorInterface { const TIMESTAMP_BYTES = 6; /** * @var RandomGeneratorInterface */ private $randomGenerator; /** * @var NumberConverterInterface */ private $converter; /** * Constructs a `CombGenerator` using a random-number generator and a number converter * * @param RandomGeneratorInterface $generator Random-number generator for the non-time part. * @param NumberConverterInterface $numberConverter Instance of number converter. */ public function __construct(RandomGeneratorInterface $generator, NumberConverterInterface $numberConverter) { $this->converter = $numberConverter; $this->randomGenerator = $generator; } /** * Generates a string of binary data of the specified length * * @param integer $length The number of bytes of random binary data to generate * @return string A binary string * @throws \Ramsey\Uuid\Exception\UnsatisfiedDependencyException if `Moontoast\Math\BigNumber` is not present * @throws \InvalidArgumentException if length is not a positive integer * @throws \Exception */ public function generate($length) { if ($length < self::TIMESTAMP_BYTES || $length < 0) { throw new \InvalidArgumentException('Length must be a positive integer.'); } $hash = ''; if (self::TIMESTAMP_BYTES > 0 && $length > self::TIMESTAMP_BYTES) { $hash = $this->randomGenerator->generate($length - self::TIMESTAMP_BYTES); } $lsbTime = str_pad($this->converter->toHex($this->timestamp()), self::TIMESTAMP_BYTES * 2, '0', STR_PAD_LEFT); return hex2bin(str_pad(bin2hex($hash), $length - self::TIMESTAMP_BYTES, '0') . $lsbTime); } /** * Returns current timestamp as integer, precise to 0.00001 seconds * * @return string */ private function timestamp() { $time = explode(' ', microtime(false)); return $time[1] . substr($time[0], 2, 5); } }