fix generation of random temp directory name

Task-number: QTIFW-427

Change-Id: Id398f810e8bf4488919297581298307ed3251d28
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>