[commits] Horde branch master updated. 8c4c0aad468451636f961a9c96867359e46ec5dd

Michael M Slusarz slusarz at horde.org
Wed Aug 11 00:08:47 UTC 2010


The branch "master" has been updated.
The following is a summary of the commits.

from: 580f432a92cc6058b01bc6c83cdc6236a6858f0c

8c4c0aa Better randomid generation (?)

-----------------------------------------------------------------------

commit 8c4c0aad468451636f961a9c96867359e46ec5dd
Author: Michael M Slusarz <slusarz at curecanti.org>
Date:   Tue Aug 10 18:05:34 2010 -0600

    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      |   16 ++++++----------
 framework/Support/test/Horde/Support/RandomidTest.php |    6 ------
 2 files changed, 6 insertions(+), 16 deletions(-)

http://git.horde.org/diff.php/framework/Support/lib/Horde/Support/Randomid.php?rt=horde-git&r1=a7806d8838addf9e85ea16a09f5ea4b131ed1275&r2=8c4c0aad468451636f961a9c96867359e46ec5dd
http://git.horde.org/diff.php/framework/Support/test/Horde/Support/RandomidTest.php?rt=horde-git&r1=041ae029b224d928de8cc039edff0dab193a95fb&r2=8c4c0aad468451636f961a9c96867359e46ec5dd




More information about the commits mailing list