aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llmessage/llpacketring.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/llmessage/llpacketring.cpp')
-rw-r--r--linden/indra/llmessage/llpacketring.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/linden/indra/llmessage/llpacketring.cpp b/linden/indra/llmessage/llpacketring.cpp
index 3876d76..6a6a456 100644
--- a/linden/indra/llmessage/llpacketring.cpp
+++ b/linden/indra/llmessage/llpacketring.cpp
@@ -166,7 +166,7 @@ S32 LLPacketRing::receivePacket (S32 socket, char *datap)
166 mActualBitsIn += packetp->getSize() * 8; 166 mActualBitsIn += packetp->getSize() * 8;
167 167
168 // Fake packet loss 168 // Fake packet loss
169 if (mDropPercentage && (frand(100.f) < mDropPercentage)) 169 if (mDropPercentage && (ll_frand(100.f) < mDropPercentage))
170 { 170 {
171 mPacketsToDrop++; 171 mPacketsToDrop++;
172 } 172 }
@@ -221,7 +221,7 @@ S32 LLPacketRing::receivePacket (S32 socket, char *datap)
221 221
222 if (packet_size) // did we actually get a packet? 222 if (packet_size) // did we actually get a packet?
223 { 223 {
224 if (mDropPercentage && (frand(100.f) < mDropPercentage)) 224 if (mDropPercentage && (ll_frand(100.f) < mDropPercentage))
225 { 225 {
226 mPacketsToDrop++; 226 mPacketsToDrop++;
227 } 227 }