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:
parent
44441d3d79
commit
e4659fd8f2
1 changed files with 2 additions and 1 deletions
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue