aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llvotreenew.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llvotreenew.cpp')
-rw-r--r--linden/indra/newview/llvotreenew.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/linden/indra/newview/llvotreenew.cpp b/linden/indra/newview/llvotreenew.cpp
index 40b0c58..d7fc635 100644
--- a/linden/indra/newview/llvotreenew.cpp
+++ b/linden/indra/newview/llvotreenew.cpp
@@ -138,9 +138,9 @@ void LLVOTreeNew::initClass()
138 //LLVOTreeNew::sParameters = LLTreeParams(); 138 //LLVOTreeNew::sParameters = LLTreeParams();
139 139
140 // initialize an array of random numbers that we'll be using 140 // initialize an array of random numbers that we'll be using
141 gLindenLabRandomNumber.seed(0); 141 LLRandLagFib607 tree_rand;
142 for (i = 0; i < MAX_RAND_NUMS; i++) 142 for (i = 0; i < MAX_RAND_NUMS; i++)
143 sRandNums[i] = gLindenLabRandomNumber.llfrand(1.0); 143 sRandNums[i] = (F32)tree_rand();
144} 144}
145 145
146/* 146/*
@@ -959,7 +959,8 @@ void LLVOTreeNew::drawTree(LLDrawPool &draw_pool)
959 U8 i, j; 959 U8 i, j;
960 960
961 // seed the drawtree thing with the object's uuid to make it original but predictable... 961 // seed the drawtree thing with the object's uuid to make it original but predictable...
962 gLindenLabRandomNumber.seed(0); 962 // don't re-seed the process random number generator. bad.
963 //gLindenLabRandomNumber.seed(0);
963 964
964 // reset the rand offsets 965 // reset the rand offsets
965 for (i = 0; i < MAX_LEVELS; i++) mRandOffset[i] = 0; 966 for (i = 0; i < MAX_LEVELS; i++) mRandOffset[i] = 0;