Replace src/network usage of RandomVariable with RandomVariableStream

This commit is contained in:
Mitch Watrous committed 2012-08-16 09:13:36 -07:00
1 parent 3370bd2438
commit 753aac3ff4
18 files changed
+2759 -2138

No files matched your search

+2 -2
View File
@@ -149,8 +149,8 @@ main (int argc, char *argv[])
//
// Create an ErrorModel based on the implementation (constructor)
// specified by the default classId
Ptr<RateErrorModel> em = CreateObjectWithAttributes<RateErrorModel> ("RanVar", RandomVariableValue (UniformVariable (0.0, 1.0)),
"ErrorRate", DoubleValue (0.001));
Ptr<RateErrorModel> em = CreateObject<RateErrorModel> ();
em->SetAttribute ("ErrorRate", DoubleValue (0.001));
d3d2.Get (0)->SetAttribute ("ReceiveErrorModel", PointerValue (em));
// Now, let's use the ListErrorModel and explicitly force a loss