/home/techb158/dev.balacoffee.com/vendor/ramsey/uuid/src/Generator
NameSizeModeActions
CombGenerator.php31950644editdlrm
DceSecurityGenerator.php44480644editdlrm
DceSecurityGeneratorInterface.php17480644editdlrm
DefaultNameGenerator.php12670644editdlrm
DefaultTimeGenerator.php38910644editdlrm
NameGeneratorFactory.php6980644editdlrm
NameGeneratorInterface.php10660644editdlrm
PeclUuidNameGenerator.php13520644editdlrm
PeclUuidRandomGenerator.php8070644editdlrm
PeclUuidTimeGenerator.php8730644editdlrm
RandomBytesGenerator.php11440644editdlrm
RandomGeneratorFactory.php7080644editdlrm
RandomGeneratorInterface.php7350644editdlrm
RandomLibAdapter.php15580644editdlrm
TimeGeneratorFactory.php11610644editdlrm
TimeGeneratorInterface.php11580644editdlrm
UnixTimeGenerator.php59730644editdlrm
Edit: /home/techb158/dev.balacoffee.com/vendor/ramsey/uuid/src/Generator/RandomBytesGenerator.php (1144B)
* @license http://opensource.org/licenses/MIT MIT */ declare(strict_types=1); namespace Ramsey\Uuid\Generator; use Ramsey\Uuid\Exception\RandomSourceException; use Throwable; /** * RandomBytesGenerator generates strings of random binary data using the * built-in `random_bytes()` PHP function * * @link http://php.net/random_bytes random_bytes() */ class RandomBytesGenerator implements RandomGeneratorInterface { /** * @throws RandomSourceException if random_bytes() throws an exception/error * * @inheritDoc */ public function generate(int $length): string { try { return random_bytes($length); } catch (Throwable $exception) { throw new RandomSourceException( $exception->getMessage(), (int) $exception->getCode(), $exception ); } } }