aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2018-04-09 15:24:25 -0700
committerCory Fields <cory-nospam-@coryfields.com>2018-04-09 19:59:29 -0400
commit7ef9cd8491185af26295b3501fca9d2a49379364 (patch)
tree95b3eceafd5e2e2bd0d7e2ac734d1c84980e972f
parentf6dfb0f504a29e3cef6a370083707d2e9b51e405 (diff)
downloadbitcoin-7ef9cd8491185af26295b3501fca9d2a49379364.tar.xz
Increase entropy in test temp directory name
-rw-r--r--src/test/test_bitcoin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test_bitcoin.cpp b/src/test/test_bitcoin.cpp
index 9390a93b99..ec068f6d6c 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());