diff --git a/README.md b/README.md index b7b4f0f..53a14ec 100644 --- a/README.md +++ b/README.md @@ -336,6 +336,11 @@ tbsl(); // returns [isValid, time => DateTimeInterface object, machine_id] \Infocyph\UID\TBSL::parse($tbsl); ``` +- Getting unique sequence + +```php +tbsl(0, true); // send true in 2nd parameter to enable sequence +``` ### RandomId diff --git a/src/TBSL.php b/src/TBSL.php index 70c50d4..1bd7857 100644 --- a/src/TBSL.php +++ b/src/TBSL.php @@ -9,7 +9,7 @@ final class TBSL { use GetSequence; - private static int $maxSequenceLength = 10; + private static int $maxSequenceLength = 7; /** * Generates a unique identifier using the TBSL algorithm.