XP is just a number | |
PerlMonks |
Re^3: Long url to tiny url.by Polonius (Friar) |
on Jul 07, 2007 at 14:45 UTC ( [id://625420]=note: print w/replies, xml ) | Need Help?? |
If you just issue the next available alphanumeric sequence, as you say, the URL is always as small as possible. But the problem with that, or any other predictable sequence, is that it's open to abuse. Conversely, if you use a random number generator with a short period, as you say you'll get lots more collisions, while a long period means the URLs will be longer than necessary.
Polonius
In Section
Seekers of Perl Wisdom
|
|