diff --git a/examples/RandomSearch.cc b/examples/RandomSearch.cc index 81062fd50d..7202283b42 100644 --- a/examples/RandomSearch.cc +++ b/examples/RandomSearch.cc @@ -136,7 +136,7 @@ Status runSearch(const fs::path& workingDir, std::vector* bestActions, int6 } void runThread(std::vector* bestActions, int64_t* bestCost) { - const fs::path workingDir = workingDir / fs::unique_path(); + const fs::path workingDir = fs::unique_path(); fs::create_directories(workingDir); if (!runSearch(workingDir, bestActions, bestCost).ok()) { LOG(ERROR) << "Search failed";