diff --git a/indra/llcommon/lluuid.h b/indra/llcommon/lluuid.h
index 8d62e4303611939669b8f3906b63f3c2d5753aca..56ed6437d9edd4f53ffed2364bca5e8e5d24c50e 100644
--- a/indra/llcommon/lluuid.h
+++ b/indra/llcommon/lluuid.h
@@ -192,7 +192,7 @@ class LL_COMMON_API LLUUID
 
 	friend std::size_t hash_value(LLUUID const& id)
 	{
-		return boost::hash_range(id.mData, id.mData + UUID_BYTES);
+		return boost::hash_value(id.mData);
 	}
 
 	// xor functions. Useful since any two random uuids xored together
@@ -281,7 +281,7 @@ namespace std {
 	{
 		size_t operator()(const LLUUID & id) const
 		{
-			return boost::hash_range(id.mData, id.mData + UUID_BYTES);
+			return boost::hash_value(id.mData);
 		}
 	};
 }
diff --git a/indra/llprimitive/llmaterialid.h b/indra/llprimitive/llmaterialid.h
index e90deea7c319202ba5f0a9cb209d600a0af6c67d..5fa1ce85c1c0337e54a359f6dfaea05fb4be0ad3 100644
--- a/indra/llprimitive/llmaterialid.h
+++ b/indra/llprimitive/llmaterialid.h
@@ -140,7 +140,7 @@ class LLMaterialID
 
 	friend std::size_t hash_value(LLMaterialID const& id)
 	{
-		return boost::hash_range(id.mID, id.mID + MATERIAL_ID_SIZE);
+		return boost::hash_value(id.mID);
 	}
 // END BOOST