Changeset 1168 for trunk/system/helpers/text.php
- Timestamp:
- 11/18/2007 03:13:52 AM (13 months ago)
- Files:
-
- 1 modified
-
trunk/system/helpers/text.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/helpers/text.php
r936 r1168 104 104 * 105 105 * Default Types: 106 * unique - a 32character unique hash106 * unique - 40 character unique hash 107 107 * alnum - alpha-numeric characters 108 108 * alpha - alphabetical characters … … 118 118 { 119 119 case 'unique': 120 return md5(uniqid(mt_rand())); 121 case '': 120 return sha1(uniqid(NULL, TRUE)); 122 121 case 'alnum': 123 122 $pool = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
