Unique names for test output files

We´d like to unit test everything but sometimes that´s just not enough. Especially when working with third-party libraries which output files of some kind and we need to verify the result. We could use something like this to get a unique name for our temporary test...