diff options
author | Jacek Antonelli | 2008-08-15 23:44:48 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:44:48 -0500 |
commit | 9b4f54c826ffa4f94efa866068c9d6ecdfb4b424 (patch) | |
tree | 2f8ae193ab487088962e628f1ee9dee2f5901f01 /linden/indra/llmessage/llpacketring.cpp | |
parent | Second Life viewer sources 1.13.2.12 (diff) | |
download | meta-impy-9b4f54c826ffa4f94efa866068c9d6ecdfb4b424.zip meta-impy-9b4f54c826ffa4f94efa866068c9d6ecdfb4b424.tar.gz meta-impy-9b4f54c826ffa4f94efa866068c9d6ecdfb4b424.tar.bz2 meta-impy-9b4f54c826ffa4f94efa866068c9d6ecdfb4b424.tar.xz |
Second Life viewer sources 1.13.2.15
Diffstat (limited to '')
-rw-r--r-- | linden/indra/llmessage/llpacketring.cpp | 4 |
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 | } |