chaged generateUID to mt_rand