fix UID formatting

This commit is contained in:
Markus Pilman 2023-02-27 11:44:38 -07:00
parent a0e347c7ba
commit 7c19e0d846
1 changed files with 3 additions and 1 deletions

View File

@ -27,6 +27,8 @@
#include <openssl/err.h>
#include <openssl/rand.h>
#include <fmt/format.h>
#include "flow/DeterministicRandom.h"
#include "flow/Error.h"
#include "flow/Hostname.h"
@ -130,7 +132,7 @@ Reference<IRandom> 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) {