mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-14 22:56:12 -04:00
Fix to generate endpoint_id randomly.
PiperOrigin-RevId: 476421714
This commit is contained in:
committed by
Copybara-Service
parent
3f2cfb1531
commit
028d2ae96a
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user