From d98bef096f7abdd670b5d31c2f8c423640bfa390 Mon Sep 17 00:00:00 2001 From: Ben Ramsey Date: Sun, 27 Mar 2022 13:03:58 -0500 Subject: [PATCH] Deprecate Ramsey\Uuid\Generator\RandomLibAdapter --- CHANGELOG.md | 9 +++++++++ src/Generator/RandomLibAdapter.php | 4 ++++ 2 files changed, 13 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0453166..4edc056 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,15 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). +## Unreleased + +### Deprecated + +The following will be removed in ramsey/uuid 5.0.0: + +* `Ramsey\Uuid\Generator\RandomLibAdapter` + + ## 4.3.0 - 2022-03-26 ### Changed diff --git a/src/Generator/RandomLibAdapter.php b/src/Generator/RandomLibAdapter.php index 24ed569..793ccd5 100644 --- a/src/Generator/RandomLibAdapter.php +++ b/src/Generator/RandomLibAdapter.php @@ -21,6 +21,10 @@ use RandomLib\Generator; * RandomLibAdapter generates strings of random binary data using the * paragonie/random-lib library * + * @deprecated This class will be removed in 5.0.0. Use the default + * RandomBytesGenerator or implement your own generator that implements + * RandomGeneratorInterface. + * * @link https://packagist.org/packages/paragonie/random-lib paragonie/random-lib */ class RandomLibAdapter implements RandomGeneratorInterface