3 ms·
Yep, length could be a problem, I was assuming a longer id. They're using 22 char identifiers. A base64'd unix epoch time in ms is another 36 chars. But I'm su
by emmelaich 11y ago
Yep, length could be a problem, I was assuming a longer id.
They're using 22 char identifiers. A base64'd unix epoch time in ms is another 36 chars. But I'm sure you could do better than that.
The chances of a collision must be vanishingly smaller within even a second (let alone a millisecond) even if the random number generation is defective.
I didn't check your maths.
- emmelaich 11y ago> base64'd unix epoch time in ms is 36 chars Correction - 21 chars. With a second resolution its 17 chars. Counting from now, the addition would only be five chars. echo -n 0 | base64 | wc -c 5