From 0ecf7b1ec70c0cf14cb3e8ec3e0d99fd75df98e6 Mon Sep 17 00:00:00 2001 From: Aner Lucero <4rgento@gmail.com> Date: Wed, 18 Jul 2018 18:32:29 -0300 Subject: [PATCH] Removed static reference to uuid generator. --- rhubarb/src/tools/platformTools.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rhubarb/src/tools/platformTools.cpp b/rhubarb/src/tools/platformTools.cpp index 116ff97..119d4c3 100644 --- a/rhubarb/src/tools/platformTools.cpp +++ b/rhubarb/src/tools/platformTools.cpp @@ -57,8 +57,7 @@ path getBinDirectory() { path getTempFilePath() { path tempDirectory = boost::filesystem::temp_directory_path(); - static auto generateUuid = boost::uuids::random_generator(); - string fileName = to_string(generateUuid()); + string fileName = to_string(boost::uuids::random_generator()()); return tempDirectory / fileName; }