From 7c19e0d84651c36f7abf66497d8a2a44ea71300a Mon Sep 17 00:00:00 2001 From: Markus Pilman Date: Mon, 27 Feb 2023 11:44:38 -0700 Subject: [PATCH] fix UID formatting --- flow/flow.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/flow/flow.cpp b/flow/flow.cpp index f8c1190e16..aa4f465145 100644 --- a/flow/flow.cpp +++ b/flow/flow.cpp @@ -27,6 +27,8 @@ #include #include +#include + #include "flow/DeterministicRandom.h" #include "flow/Error.h" #include "flow/Hostname.h" @@ -130,7 +132,7 @@ Reference nondeterministicRandom() { } std::string UID::toString() const { - return format("%016llx%016llx", part[0], part[1]); + return fmt::format("{:016x}{:016x}", part[0], part[1]); } UID UID::fromString(std::string const& s) {