diff options
author | Pieter Wuille <pieter.wuille@gmail.com> | 2018-04-09 15:24:25 -0700 |
---|---|---|
committer | Cory Fields <cory-nospam-@coryfields.com> | 2018-04-09 19:59:29 -0400 |
commit | 7ef9cd8491185af26295b3501fca9d2a49379364 (patch) | |
tree | 95b3eceafd5e2e2bd0d7e2ac734d1c84980e972f /src/test | |
parent | f6dfb0f504a29e3cef6a370083707d2e9b51e405 (diff) |
Increase entropy in test temp directory name
Diffstat (limited to 'src/test')
-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 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()); |