From c0c827d3ad2c8364d35fff5546ab40ea76bbbbd9 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Tue, 28 Aug 2018 12:00:23 +0200 Subject: update composer libs and add ramsey/uuid --- .../uuid/src/Generator/RandomGeneratorFactory.php | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 vendor/ramsey/uuid/src/Generator/RandomGeneratorFactory.php (limited to 'vendor/ramsey/uuid/src/Generator/RandomGeneratorFactory.php') diff --git a/vendor/ramsey/uuid/src/Generator/RandomGeneratorFactory.php b/vendor/ramsey/uuid/src/Generator/RandomGeneratorFactory.php new file mode 100644 index 000000000..39110622f --- /dev/null +++ b/vendor/ramsey/uuid/src/Generator/RandomGeneratorFactory.php @@ -0,0 +1,31 @@ + + * @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; + +/** + * A factory for retrieving a random generator, based on the environment + */ +class RandomGeneratorFactory +{ + /** + * Returns a default random generator, based on the current environment + * + * @return RandomGeneratorInterface + */ + public static function getGenerator() + { + return new RandomBytesGenerator(); + } +} -- cgit v1.2.3