From: Michael M Slusarz Date: Thu, 17 Jun 2010 22:17:10 +0000 (-0600) Subject: 36^16 should be plenty of randomness for a default random ID X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=d5529db1fa055dafb01aa2f29703092349e50088;p=horde.git 36^16 should be plenty of randomness for a default random ID --- diff --git a/framework/Mime/lib/Horde/Mime.php b/framework/Mime/lib/Horde/Mime.php index edfae9b0c..583a55d69 100644 --- a/framework/Mime/lib/Horde/Mime.php +++ b/framework/Mime/lib/Horde/Mime.php @@ -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); }