We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent abd766e commit a95250aCopy full SHA for a95250a
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