diff --git a/README.md b/README.md index 5801a27..0df9ffa 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,7 @@ using shortid.Configuration; This gives your code access the classes and methods of the `shortid` namespace. -To generate a unique id of any length between 8 and 14, you call the `Generate` method without parameters. +To generate a unique id of any length between 8 and 15, you call the `Generate` method without parameters. ```csharp string id = ShortId.Generate(); @@ -85,7 +85,7 @@ string id = ShortId.Generate(options); To change the character set in use, run the following: ```csharp -string characters = //whatever you want; +string characters = "ⒶⒷⒸⒹⒺⒻⒼⒽⒾⒿⓀⓁⓂⓃⓄⓅⓆⓇⓈⓉⓊⓋⓌⓍⓎⓏⓐⓑⓒⓓⓔⓕⓖⓗⓘⓙⓚⓛⓜⓝⓞⓟⓠⓡⓢⓣⓤⓥⓦⓧⓨⓩ①②③④⑤⑥⑦⑧⑨⑩⑪⑫"; //whatever you want; ShortId.SetCharacters(characters); ``` @@ -104,4 +104,4 @@ Finally, `ShortId` allows for all customizations to be reset using the following ```csharp ShortId.Reset(); -``` +``` \ No newline at end of file diff --git a/shortid.Test/Configuration/GenerationOptions.Tests.cs b/shortid.Test/Configuration/GenerationOptions.Tests.cs index f339a5e..4724435 100644 --- a/shortid.Test/Configuration/GenerationOptions.Tests.cs +++ b/shortid.Test/Configuration/GenerationOptions.Tests.cs @@ -33,7 +33,7 @@ public void ShouldAssignRandomLengthOnInstantiation() options .Length .Should() - .BeGreaterThan(7); + .BeGreaterThan(6); options .Length .Should() diff --git a/shortid/shortid.csproj b/shortid/shortid.csproj index dfb6499..f4f05ce 100644 --- a/shortid/shortid.csproj +++ b/shortid/shortid.csproj @@ -8,7 +8,7 @@ https://members.orcid.org/sites/default/files/vector_iD_icon.svg https://github.com/bolorundurowb/shortid/ shortid short id databse identifier key primarykey mongodb sql - - fix thread safety issues + - - add in further restrictions to maintain uniqueness Bolorunduro Winner-Timothy A library that generates random identifiers from 7 to 14 characters. Identifiers generated can be used as primary keys for databases or unique identifiers. @@ -16,9 +16,9 @@ true shortid git - 3.0.0 - 3.0.0 - 3.0.0 + 3.0.0.0 + 3.0.0.0 + 3.0.0.0 en-NG