1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

File: Use unit test random instance to generate unique filename

This commit is contained in:
reuk 2021-04-09 10:26:28 +01:00
parent 44441d3d79
commit e4659fd8f2
No known key found for this signature in database
GPG key ID: 9ADCD339CFC98A11

View file

@ -1097,8 +1097,9 @@ public:
beginTest ("Writing");
auto random = getRandom();
const auto tempFolderName = "JUCE UnitTests Temp Folder "
+ String::toHexString (Random::getSystemRandom().nextInt())
+ String::toHexString (random.nextInt())
+ ".folder";
File demoFolder (temp.getChildFile (tempFolderName));
expect (demoFolder.deleteRecursively());