diff options
| author | Pieter Wuille <[email protected]> | 2018-04-09 15:24:25 -0700 |
|---|---|---|
| committer | Cory Fields <[email protected]> | 2018-04-09 19:59:29 -0400 |
| commit | 7ef9cd8491185af26295b3501fca9d2a49379364 (patch) | |
| tree | 95b3eceafd5e2e2bd0d7e2ac734d1c84980e972f /src/test/test_bitcoin.cpp | |
| parent | Reorder travis builds (diff) | |
| download | discoin-7ef9cd8491185af26295b3501fca9d2a49379364.tar.xz discoin-7ef9cd8491185af26295b3501fca9d2a49379364.zip | |
Increase entropy in test temp directory name
Diffstat (limited to 'src/test/test_bitcoin.cpp')
| -rw-r--r-- | src/test/test_bitcoin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test_bitcoin.cpp b/src/test/test_bitcoin.cpp index 9390a93b9..ec068f6d6 100644 --- a/src/test/test_bitcoin.cpp +++ b/src/test/test_bitcoin.cpp @@ -68,7 +68,7 @@ TestingSetup::TestingSetup(const std::string& chainName) : BasicTestingSetup(cha RegisterAllCoreRPCCommands(tableRPC); ClearDatadirCache(); - pathTemp = fs::temp_directory_path() / strprintf("test_bitcoin_%lu_%i", (unsigned long)GetTime(), (int)(InsecureRandRange(100000))); + pathTemp = fs::temp_directory_path() / strprintf("test_bitcoin_%lu_%i", (unsigned long)GetTime(), (int)(InsecureRandRange(1 << 30))); fs::create_directories(pathTemp); gArgs.ForceSetArg("-datadir", pathTemp.string()); |