From d5529db1fa055dafb01aa2f29703092349e50088 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Thu, 17 Jun 2010 16:17:10 -0600 Subject: [PATCH] 36^16 should be plenty of randomness for a default random ID --- framework/Mime/lib/Horde/Mime.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.11.0