================ @@ -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 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits