diff --git a/indra/newview/llhasheduniqueid.cpp b/indra/newview/llhasheduniqueid.cpp
index 03192d3e61c16e9a162038ea61a68570c463a17e..38dafc167fa2caa0be75795eba51ea16ee498616 100644
--- a/indra/newview/llhasheduniqueid.cpp
+++ b/indra/newview/llhasheduniqueid.cpp
@@ -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);