From aa8c83b6a6adbab6c0e279f1b2fe396e6dff7793 Mon Sep 17 00:00:00 2001
From: Rye Mutt <rye@alchemyviewer.org>
Date: Thu, 15 Oct 2020 10:20:40 -0400
Subject: [PATCH] Swap back to our rand for model preview color randomization

---
 indra/newview/llmodelpreview.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/indra/newview/llmodelpreview.cpp b/indra/newview/llmodelpreview.cpp
index a5693022846..ac3f34c740e 100644
--- a/indra/newview/llmodelpreview.cpp
+++ b/indra/newview/llmodelpreview.cpp
@@ -3116,7 +3116,7 @@ BOOL LLModelPreview::render()
 
                                         if (i + 1 >= hull_colors.size())
                                         {
-                                            hull_colors.push_back(LLColor4U(rand() % 128 + 127, rand() % 128 + 127, rand() % 128 + 127, 128));
+                                            hull_colors.push_back(LLColor4U(ll_rand(255), ll_rand(255), ll_rand(255)));
                                         }
 
                                         gGL.diffuseColor4ubv(hull_colors[i].mV);
-- 
GitLab