SL-15668 getNodeID is no longer reliable

master
Andrey Kleshchev 2021-07-29 20:38:39 +03:00
parent 84a0ae682a
commit 8ee63b463f
1 changed files with 2 additions and 2 deletions

View File

@ -35,8 +35,8 @@ bool llHashedUniqueID(unsigned char id[MD5HEX_STR_SIZE])
bool idIsUnique = true;
LLMD5 hashed_unique_id;
unsigned char unique_id[MAC_ADDRESS_BYTES];
if ( LLUUID::getNodeID(unique_id)
|| LLMachineID::getUniqueID(unique_id, sizeof(unique_id))
if ( LLMachineID::getUniqueID(unique_id, sizeof(unique_id))
|| LLUUID::getNodeID(unique_id)
)
{
hashed_unique_id.update(unique_id, MAC_ADDRESS_BYTES);