I wrote the following module, which encodes the UUID on an arbitrary base:
http://pypi.python.org/pypi/shortuuid/
Now it reduces to 22 characters with the default alphabet, preserving the uniqueness, but I was interested to know how many (/) digits I could cut and maximize the stored uniqueness.
Are all UUID digits equally random / unique, or are some digits more random than others? For example, if the first few digits are the identifier of the machine / application, then obviously they will be less random than the last few. I have not noticed anything like this in my experiments, but I want to be sure before I advise people on it.
Truncate it, say, 8 digits, has a probability of collision 1/57 ^ 8, or is the probability uneven in numbers?
source share