diff options
Diffstat (limited to 'indra/llmessage/llpacketring.cpp')
-rw-r--r-- | indra/llmessage/llpacketring.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/llmessage/llpacketring.cpp b/indra/llmessage/llpacketring.cpp index 4f17d1ae5a..1bf72edfc1 100644 --- a/indra/llmessage/llpacketring.cpp +++ b/indra/llmessage/llpacketring.cpp @@ -147,7 +147,7 @@ S32 LLPacketRing::receivePacket (S32 socket, char *datap) mActualBitsIn += packetp->getSize() * 8; // Fake packet loss - if (mDropPercentage && (frand(100.f) < mDropPercentage)) + if (mDropPercentage && (ll_frand(100.f) < mDropPercentage)) { mPacketsToDrop++; } @@ -202,7 +202,7 @@ S32 LLPacketRing::receivePacket (S32 socket, char *datap) if (packet_size) // did we actually get a packet? { - if (mDropPercentage && (frand(100.f) < mDropPercentage)) + if (mDropPercentage && (ll_frand(100.f) < mDropPercentage)) { mPacketsToDrop++; } |