[Lldb-commits] [lldb] [LLDB][Telemetry]Define DebuggerTelemetryInfo and related methods (PR #127696)
Pavel Labath via lldb-commits
lldb-commits at lists.llvm.org
Fri Feb 21 01:20:48 PST 2025
================
@@ -41,17 +41,32 @@ static uint64_t ToNanosec(const SteadyTimePoint Point) {
return std::chrono::nanoseconds(Point.time_since_epoch()).count();
}
-static std::string MakeUUID(Debugger *debugger) {
+// Generate a unique string. This should be unique across different runs.
+// We build such string by combining three parts:
+// <16 random bytes>_<timestamp>_<hash of username>
+// This reduces the chances of getting the same UUID, even when the same
----------------
labath wrote:
Can we drop the user name part? I would hope 16 bytes of random data is enough to guarantee uniqueness, and I suspect the MD5 hash on the user name is easily reversible (so it's basically leaking the user name).
https://github.com/llvm/llvm-project/pull/127696
More information about the lldb-commits
mailing list