fix generation of random file names
Merge pull request #2 from timo/master

fix generation of random file names