Skip to content

Commit

Permalink
0.0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
osexpert committed Sep 1, 2024
1 parent 21238c9 commit 74d3b5c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 0.0.7
* Change dynamic/variable counter: 4-18bits
* Add 'back off' logic: when on the 'edge', gradually reduce number of bits instead of going straight back to 4 bits.
* FIX: Take the remaining lower bits from the Guid (random) instead of from the counter (constant). This increases randomness.

## 0.0.6
* Since it is difficult to choose correct number of counter bits: change to dynamic/variable counter: 12-18bits

Expand Down
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<Company>osexpert</Company>
<PackageReleaseNotes>See https://github.com/osexpert/GuidPhantom/blob/master/CHANGELOG.md for details</PackageReleaseNotes>

<VersionPrefix>0.0.6</VersionPrefix>
<VersionPrefix>0.0.7</VersionPrefix>
<PackageTags>guid uuid</PackageTags>
<Description>Yet another Guid library:-) Create Guid v1,v3,v5,v6,v7,v8MsSql,v8SHA256,v8SHA512,NEWSEQUENTIALID,XorGuid,NumericGuid,IncrementedGuid. Convert between v1 and v6. Convert between v7 and v8MsSql. Get Guid info.</Description>

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Version 7 Guid's generated by GuidPhantom are currently encoded as:
Counter start as 4bit random data.
If timestamp does not change, the counter start to increment + 1.
If the counter overflows, the timestamp is incremented + 1 and the counter is extended with 1 bit (up to max 18bits).
Counter is reduced gradually/reset to 4bits when time catches up.
Counter is reduced gradually if on the edge/reset to 4bits when time catches up.
Goal: make Guid's created with the same timestamp as random as possible (like Guid's created with different timestamps).
This does not reduce the risk of collisons (ref: Ulid) but it tries to avoid that Guid's become visibly different (less random),
just because they were made during the same timestamp.
Expand Down
2 changes: 1 addition & 1 deletion nuget push.bat
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
REM set myKey=
set ver=0.0.6
set ver=0.0.7

nuget push bin\Packages\Release\NuGet\GuidPhantom.%ver%.nupkg -src https://api.nuget.org/v3/index.json -ApiKey %myKey%

0 comments on commit 74d3b5c

Please sign in to comment.