diff options
author | Aaron Brashears <aaronb@lindenlab.com> | 2007-01-18 00:44:48 +0000 |
---|---|---|
committer | Aaron Brashears <aaronb@lindenlab.com> | 2007-01-18 00:44:48 +0000 |
commit | c189fc0b579352c34285fcf03db4b5bca5cd3804 (patch) | |
tree | ba32536c8bf3b23f311e7ae77aa69f9cbaec4582 /indra/llmessage/llpacketring.cpp | |
parent | 73f0b5029aa247a563862fc39152ce58baa407aa (diff) |
Result of svn merge -r56700:56797 svn+ssh://svn/svn/linden/branches/more-random into release.
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++; } |