1 #include "hmbdc/Copyright.hpp" 8 namespace hmbdc {
namespace comm {
11 static Uuid generate() {
12 std::uniform_int_distribution<uint64_t> dist(1, 0xfffffffffffffffful);
18 bool operator == (
Uuid const& other)
const {
19 return v_ == other.v_;
23 std::ostream& operator << (std::ostream& os,
Uuid const& t) {
27 std::istream& operator >> (std::istream& is,
Uuid& t) {
30 static thread_local std::random_device rd_s;
31 static thread_local std::default_random_engine gen_s;