36^16 should be plenty of randomness for a default random ID
authorMichael M Slusarz <slusarz@curecanti.org>
Thu, 17 Jun 2010 22:17:10 +0000 (16:17 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Fri, 25 Jun 2010 18:11:31 +0000 (12:11 -0600)
framework/Mime/lib/Horde/Mime.php

index edfae9b..583a55d 100644 (file)
@@ -589,7 +589,7 @@ class Horde_Mime
      *
      * @return string  A random string.
      */
-    static public function generateRandomId($length = 24)
+    static public function generateRandomId($length = 16)
     {
         return substr(base_convert(dechex(strtr(microtime(), array('0.' => '', ' ' => ''))) . strtr(uniqid(mt_rand(), true), array('.' => '')), 16, 36), 0, $length);
     }