Replace src/network usage of RandomVariable with RandomVariableStream

This commit is contained in:
Mitch Watrous
2012-08-16 09:13:36 -07:00
parent f2d5e4b1ae
commit 998713685f
18 changed files with 2759 additions and 2138 deletions

View File

@@ -187,9 +187,8 @@ main (int argc, char *argv[])
NetDeviceContainer devices;
devices = pointToPoint.Install (nodes);
Ptr<RateErrorModel> em = CreateObjectWithAttributes<RateErrorModel> (
"RanVar", RandomVariableValue (UniformVariable (0., 1.)),
"ErrorRate", DoubleValue (0.00001));
Ptr<RateErrorModel> em = CreateObject<RateErrorModel> ();
em->SetAttribute ("ErrorRate", DoubleValue (0.00001));
devices.Get (1)->SetAttribute ("ReceiveErrorModel", PointerValue (em));
InternetStackHelper stack;