Once I've asked about : how does apparently random query string/urls are being generated.
It can be found in many places :
http://www.youtube.com/watch?v=IMl7pvaWzh8
^
|
+----------------
http://jsfiddle.net/xeolabs/LSTKM/light/
^
|
+----------------
http://jsbin.com/asapay/1/edit
^
|
+----------------
I was told ( and it seems logic) that when the server pick a new url , it doesnt check if it is free ( wasn't chosen before)
Also , I was told it can be result of a formula such as: f(n+1) = f(n)+1 ( so it is not random at all.
so the new url param is generated as a result of the last generated url param.
my Question :
where can I found such generators functions ?
of course I can build one of my own such 17=16+1 but i'm looking something ready like :
f(n+1) = f(n)+1 where there is a usages of uppercase , lower case , numbers. and
of course minimum collisions and zero predictions.
you know , something professional...
I'm just curious how google/youtube/jsbin/jsfiddle does it with a millions of requests a day.
IMl7pvaWzh8will yield meSGierk43.even if i choose RGNCcryptoGenerator - I cant be sure that taking only thr first 7 bytes ( and convert to letters) will be unique. ( also who said that the char will be able to be at the query string ? - as you know , not all chars can be)IMl7pvaWzh8using any arbitrary method; but then say you getSGierk43- you might need to check whetherSGierk43is in use, and if so, re-hash (with some other factor) to get a new value (rinse, repeat, etc); you need to store the slugs centrally anyway, because you can't reverse them. You need a lookup thatSGierk43(or whatever) gets you back to the originalIMl7pvaWzh8