i didn't try it, but i think you should edit the "main.inc.php" file in the root directory. Search for "define('EXT_TICKET_ID_LEN',6)" and change the Value 6 to the desired length (max. 11 as the DB field is restricted to that Value).
Will apply only, if you are using random ticket id's.