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

[Task] Update no. of characters in run Id to increase the probability of uniqueness #34113

Open
infinitetrooper opened this issue Jun 8, 2024 · 3 comments
Assignees
Labels
Low effort Takes 1-2 days Low An issue that is neither critical nor breaks a user flow Task A simple Todo Workflows Pod For all issues related to the Workflows feature Workflows

Comments

@infinitetrooper
Copy link
Contributor

For 8 character alpha-numeric, The probability of finding at least one non-unique sample among 1000000 (=10^6) samples, sampled uniformly at random from a set of 2821109907456 (≈3*10^12) items, is:
≈16.2417113536%

If we move it to 10 character alpha-numeric, The probability of finding at least one non-unique sample among 1000000 (=10^6) samples, sampled uniformly at random from a set of 3656158440062976 (≈4*10^15) items, is:
≈0.0136746074% (≈10^-4)

If we move it to 12 character alpha-numeric, The probability of finding at least one non-unique sample among 1000000 (=10^6) samples, sampled uniformly at random from a set of 4738381338321616896 (≈5*10^18) items, is:
≈0.0000105521% (≈10^-7) (Stirling's approximation used in factorial calculation)

Or using Milliseconds since EPOC can give us that uniqueness as well probably.

@infinitetrooper infinitetrooper added Git Pod Anything related to git sync Low An issue that is neither critical nor breaks a user flow Low effort Takes 1-2 days Task A simple Todo Workflows Workflows Pod For all issues related to the Workflows feature labels Jun 8, 2024
@github-actions github-actions bot removed the Git Pod Anything related to git sync label Jun 8, 2024
@razelos
Copy link

razelos commented Jun 10, 2024

Hey, could you provide more info on where I could find where this number is generated so I can change it? Thanks!

@infinitetrooper
Copy link
Contributor Author

@razelos - Thanks for your interest but, this is part of our paid edition so it cannot be picked up by external contributions. Please check for Good First Issues to find a ticket you can contribute to.

@infinitetrooper
Copy link
Contributor Author

Nano Id, Collison Calculator.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Low effort Takes 1-2 days Low An issue that is neither critical nor breaks a user flow Task A simple Todo Workflows Pod For all issues related to the Workflows feature Workflows
Projects
None yet
Development

No branches or pull requests

5 participants