Unless I'm missing something, packing the mt_rand() result as an unsigned int
authorChuck Hagenbuch <chuck@horde.org>
Mon, 6 Sep 2010 04:53:14 +0000 (00:53 -0400)
committerChuck Hagenbuch <chuck@horde.org>
Mon, 6 Sep 2010 04:56:56 +0000 (00:56 -0400)
commit87fcd562795bada4ea2101391f3ae1c0b5a90793
tree2dd29f1f8aa6ecd6e5dcc057fa0ba937a79d35d9
parent44aad5bf07fd17e52bb14a1523de9f7349384002
Unless I'm missing something, packing the mt_rand() result as an unsigned int
doesn't lose any data but takes up predictably less space, letting us say that
this is always a 24-char random id.

Also, rather than giving up randomness, use url-safe base64 encoding.
framework/Support/lib/Horde/Support/Randomid.php