projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
70ff40d
)
36^16 should be plenty of randomness for a default random ID
author
Michael M Slusarz
<slusarz@curecanti.org>
Thu, 17 Jun 2010 22:17:10 +0000
(16:17 -0600)
committer
Michael M Slusarz
<slusarz@curecanti.org>
Fri, 25 Jun 2010 18:11:31 +0000
(12:11 -0600)
framework/Mime/lib/Horde/Mime.php
patch
|
blob
|
history
diff --git
a/framework/Mime/lib/Horde/Mime.php
b/framework/Mime/lib/Horde/Mime.php
index
edfae9b
..
583a55d
100644
(file)
--- 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);
}