diff --git a/indra/newview/llmodelpreview.cpp b/indra/newview/llmodelpreview.cpp index a569302284605dd5ceb7f03741eba31c3f4f0e56..ac3f34c740e5a22f0b19953bd03499c64f8d9bbb 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);