We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents abd766e + a95250a commit 0a86d6fCopy full SHA for 0a86d6f
include/mqtt/broker/uuid.hpp
@@ -19,7 +19,7 @@ MQTT_BROKER_NS_BEGIN
19
20
inline std::string create_uuid_string() {
21
// See https://github.com/boostorg/uuid/issues/121
22
- auto gen = boost::uuids::random_generator();
+ static thread_local auto gen = boost::uuids::random_generator();
23
return boost::uuids::to_string(gen());
24
}
25
0 commit comments