Index: branches/5.2.x/core/units/users/users_tag_processor.php =================================================================== diff -u -N -r15152 -r15517 --- branches/5.2.x/core/units/users/users_tag_processor.php (.../users_tag_processor.php) (revision 15152) +++ branches/5.2.x/core/units/users/users_tag_processor.php (.../users_tag_processor.php) (revision 15517) @@ -1,6 +1,6 @@ GenerateCode()); + $code = md5(kUtil::generateId()); } return $code; } - function GenerateCode() - { - list($usec, $sec) = explode(" ",microtime()); - - $id_part_1 = substr($usec, 4, 4); - $id_part_2 = mt_rand(1,9); - $id_part_3 = substr($sec, 6, 4); - $digit_one = substr($id_part_1, 0, 1); - - if ($digit_one == 0) { - $digit_one = mt_rand(1,9); - $id_part_1 = preg_replace('/^0/', '', $id_part_1); - $id_part_1=$digit_one.$id_part_1; - } - - return $id_part_1.$id_part_2.$id_part_3; - } - function TestCodeIsValid($params) { $user_helper = $this->Application->recallObject('UserHelper');