Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Random letter prefix to CUID2 #2

Merged
merged 1 commit into from
Mar 31, 2024
Merged

Random letter prefix to CUID2 #2

merged 1 commit into from
Mar 31, 2024

Conversation

stulzer
Copy link
Owner

@stulzer stulzer commented Mar 27, 2024

This commit introduces a change to the CUID generation process. Now, each
CUID starts with a random letter from 'a' to 'z'. This change is intended
to increase the uniqueness of each CUID and reduce the likelihood of
collisions.

The tests have been updated to reflect this change. A new test has been
added to ensure that the first character of the CUID is not always the
same.

@stulzer
Copy link
Owner Author

stulzer commented Mar 27, 2024

Closes #1

This commit introduces a change to the CUID generation process. Now, each
CUID starts with a random letter from 'a' to 'z'. This change is intended
to increase the uniqueness of each CUID and reduce the likelihood of
collisions.

The tests have been updated to reflect this change. A new test has been
added to ensure that the first character of the CUID is not always the
same.
@stulzer stulzer merged commit 23eba56 into main Mar 31, 2024
1 check passed
@stulzer stulzer deleted the fix-first-char branch March 31, 2024 10:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant