Skip to content

Commit 3bdd648

Browse files
committed
scratch: stringintech changes
1 parent ed813c4 commit 3bdd648

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/test/util/setup_common.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,11 @@ BasicTestingSetup::BasicTestingSetup(const ChainType chainType, TestOpts opts)
164164
// tests, such as the fuzz tests to run in several processes at the
165165
// same time, add a random element to the path. Keep it small enough to
166166
// avoid a MAX_PATH violation on Windows.
167-
const auto rand{HexStr(g_rng_temp_path.randbytes(10))};
168-
return fs::temp_directory_path() / TEST_DIR_PATH_ELEMENT / test_name / rand;
167+
//const auto rand{HexStr(g_rng_temp_path.randbytes(10))};
168+
//return fs::temp_directory_path() / TEST_DIR_PATH_ELEMENT / test_name / rand;
169+
std::vector<unsigned char> random_path_suffix(10);
170+
GetStrongRandBytes(random_path_suffix);
171+
return fs::temp_directory_path() / TEST_DIR_PATH_ELEMENT / test_name / HexStr(random_path_suffix);
169172
};
170173

171174
if (m_node.args->IsArgSet("-testdatadir")) {

0 commit comments

Comments
 (0)