Put 6 bytes of random in tmp folder name

Closes #3635