summaryrefslogtreecommitdiff
path: root/src/filecache.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/filecache.cpp')
-rw-r--r--src/filecache.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/filecache.cpp b/src/filecache.cpp
index a107714..66787e1 100644
--- a/src/filecache.cpp
+++ b/src/filecache.cpp
@@ -12,7 +12,10 @@ std::string GetCachedName(const std::string &str) {
}
Cache::Cache() {
- m_tmp_path = std::filesystem::temp_directory_path() / "abaddon-cache";
+ gchar *rand = g_uuid_string_random();
+ std::string randstr = rand;
+ g_free(rand);
+ m_tmp_path = std::filesystem::temp_directory_path() / ("abaddon-cache-" + randstr);
std::filesystem::create_directories(m_tmp_path);
m_worker.set_file_path(m_tmp_path);
}