diff options
Diffstat (limited to 'zen/guid.h')
-rw-r--r-- | zen/guid.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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()); } } |