Skip to content

Commit 7ef9cd8

Browse files
sipatheuni
authored andcommitted
Increase entropy in test temp directory name
1 parent f6dfb0f commit 7ef9cd8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/test_bitcoin.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ TestingSetup::TestingSetup(const std::string& chainName) : BasicTestingSetup(cha
6868

6969
RegisterAllCoreRPCCommands(tableRPC);
7070
ClearDatadirCache();
71-
pathTemp = fs::temp_directory_path() / strprintf("test_bitcoin_%lu_%i", (unsigned long)GetTime(), (int)(InsecureRandRange(100000)));
71+
pathTemp = fs::temp_directory_path() / strprintf("test_bitcoin_%lu_%i", (unsigned long)GetTime(), (int)(InsecureRandRange(1 << 30)));
7272
fs::create_directories(pathTemp);
7373
gArgs.ForceSetArg("-datadir", pathTemp.string());
7474

0 commit comments

Comments
 (0)