/home/techb158/immovalet.com/vendor/ramsey/uuid/src/Generator
NameSizeModeActions
CombGenerator.php34550644editdlrm
DceSecurityGenerator.php48870644editdlrm
DceSecurityGeneratorInterface.php17480644editdlrm
DefaultNameGenerator.php11240644editdlrm
DefaultTimeGenerator.php42040644editdlrm
NameGeneratorFactory.php6980644editdlrm
NameGeneratorInterface.php10660644editdlrm
PeclUuidNameGenerator.php14570644editdlrm
PeclUuidRandomGenerator.php7550644editdlrm
PeclUuidTimeGenerator.php8210644editdlrm
RandomBytesGenerator.php11300644editdlrm
RandomGeneratorFactory.php7080644editdlrm
RandomGeneratorInterface.php7270644editdlrm
RandomLibAdapter.php14060644editdlrm
TimeGeneratorFactory.php15100644editdlrm
TimeGeneratorInterface.php11580644editdlrm
Edit: /home/techb158/immovalet.com/vendor/ramsey/uuid/src/Generator/RandomLibAdapter.php (1406B)
* @license http://opensource.org/licenses/MIT MIT */ declare(strict_types=1); namespace Ramsey\Uuid\Generator; use RandomLib\Factory; use RandomLib\Generator; /** * RandomLibAdapter generates strings of random binary data using the * paragonie/random-lib library * * @link https://packagist.org/packages/paragonie/random-lib paragonie/random-lib */ class RandomLibAdapter implements RandomGeneratorInterface { /** * @var Generator */ private $generator; /** * Constructs a RandomLibAdapter * * By default, if no Generator is passed in, this creates a high-strength * generator to use when generating random binary data. * * @param Generator|null $generator The generator to use when generating binary data */ public function __construct(?Generator $generator = null) { if ($generator === null) { $factory = new Factory(); $generator = $factory->getHighStrengthGenerator(); } $this->generator = $generator; } public function generate(int $length): string { return $this->generator->generate($length); } }