Better randomid generation (?)
authorMichael M Slusarz <slusarz@curecanti.org>
Wed, 11 Aug 2010 00:05:34 +0000 (18:05 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Wed, 11 Aug 2010 00:08:27 +0000 (18:08 -0600)
commit8c4c0aad468451636f961a9c96867359e46ec5dd
treed1f032f59c2d4e865f21e0b313e6dac8e723892d
parent580f432a92cc6058b01bc6c83cdc6236a6858f0c
Better randomid generation (?)

Since uniqid() is essentially microtime(), adding microtime()
information does not get us anything. So use uniqid/mt_rand exclusively,
add a bit more entropy with the current PID, and encode with base64 -
packs even more info into the characters.
framework/Support/lib/Horde/Support/Randomid.php
framework/Support/test/Horde/Support/RandomidTest.php