DreamPearl commented on a change in pull request #340:
URL: https://github.com/apache/qpid-proton/pull/340#discussion_r756068571
##########
File path: cpp/include/proton/uuid.hpp
##########
@@ -35,13 +38,20 @@ namespace proton {
/// A 16-byte universally unique identifier.
class uuid : public byte_array<16> {
+
+ private:
+ thread_local static std::independent_bits_engine<std::mt19937, CHAR_BIT,
+ unsigned int>
+ engine;
+ thread_local static std::seed_seq seed;
+
public:
/// Make a copy.
PN_CPP_EXTERN static uuid copy();
/// Return a uuid copied from bytes. Bytes must point to at least
/// 16 bytes. If `bytes == 0` the UUID is zero-initialized.
- PN_CPP_EXTERN static uuid copy(const char* bytes);
+ PN_CPP_EXTERN static uuid copy(const char *bytes);
Review comment:
Yep, I am still using git clang-format. Updated the local configuration
to adapt this.
Thanks!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]