Fix to generate endpoint_id randomly.

PiperOrigin-RevId: 476421714
This commit is contained in:
Eiden Kim
2022-09-23 11:37:47 -07:00
committed by Copybara-Service
parent 3f2cfb1531
commit 028d2ae96a
2 changed files with 1 additions and 2 deletions
+1 -1
View File
@@ -94,7 +94,7 @@ std::string ClientProxy::GenerateLocalEndpointId() {
}
std::string id;
for (int i = 0; i < kEndpointIdLength; i++) {
id += kEndpointIdChars[prng_.NextUint32() % sizeof(kEndpointIdChars)];
id += kEndpointIdChars[Prng().NextUint32() % sizeof(kEndpointIdChars)];
}
return id;
}
@@ -304,7 +304,6 @@ class ClientProxy final {
std::string ToString(PayloadProgressInfo::Status status) const;
mutable RecursiveMutex mutex_;
Prng prng_;
std::int64_t client_id_;
std::string local_endpoint_id_;
// If currently is advertising in high visibility mode is true: high power and