Debian Codegraph @

vendor/ramsey/uuid/src/Generator/RandomGeneratorFactory.php

raw
1 <?php
2 /**
3 * This file is part of the ramsey/uuid library
4 *
5 * For the full copyright and license information, please view the LICENSE
6 * file that was distributed with this source code.
7 *
8 * @copyright Copyright (c) Ben Ramsey <[email protected]>
9 * @license http://opensource.org/licenses/MIT MIT
10 * @link https://benramsey.com/projects/ramsey-uuid/ Documentation
11 * @link https://packagist.org/packages/ramsey/uuid Packagist
12 * @link https://github.com/ramsey/uuid GitHub
13 */
14
15 namespace Ramsey\Uuid\Generator;
16
17 /**
18 * A factory for retrieving a random generator, based on the environment
19 */
20 class RandomGeneratorFactory
21 {
22 /**
23 * Returns a default random generator, based on the current environment
24 *
25 * @return RandomGeneratorInterface
26 */
27 public static function getGenerator()
28 {
29 return new RandomBytesGenerator();
30 }
31 }