summaryrefslogtreecommitdiff
path: root/zen/guid.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:19:49 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:19:49 +0200
commitc8e0e909b4a8d18319fc65434a10dc446434817c (patch)
treeeee91e7d2ce229dd043811eae8f1e2bd78061916 /zen/guid.h
parent5.2 (diff)
downloadFreeFileSync-c8e0e909b4a8d18319fc65434a10dc446434817c.tar.gz
FreeFileSync-c8e0e909b4a8d18319fc65434a10dc446434817c.tar.bz2
FreeFileSync-c8e0e909b4a8d18319fc65434a10dc446434817c.zip
5.3
Diffstat (limited to 'zen/guid.h')
-rw-r--r--zen/guid.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/zen/guid.h b/zen/guid.h
index 42119674..acc07fa0 100644
--- a/zen/guid.h
+++ b/zen/guid.h
@@ -28,7 +28,8 @@ namespace zen
inline
std::string generateGUID() //creates a 16 byte GUID
{
- boost::uuids::uuid nativeRep = boost::uuids::random_generator()();
+ boost::uuids::uuid nativeRep = boost::uuids::random_generator()(); //generator is thread-safe like an int
+ //perf: generator: 0.22ms per call; retrieve GUID: 0.12µs per call
return std::string(nativeRep.begin(), nativeRep.end());
}
}
bgstack15