examples/tcp/tcp-nsc-lfn.cc
changeset 8986 3391f6a7fb3b
parent 8966 060dba23e9bb
child 9270 58b23c49c456
--- a/examples/tcp/tcp-nsc-lfn.cc	Wed Aug 15 18:08:46 2012 -0700
+++ b/examples/tcp/tcp-nsc-lfn.cc	Thu Aug 16 09:13:36 2012 -0700
@@ -101,11 +101,10 @@
   Ipv4InterfaceContainer ipv4Interfaces = ipv4.Assign (p2pInterfaces);
 
   DoubleValue rate (errRate);
-  RandomVariableValue u01 (UniformVariable (0.0, 1.0));
   Ptr<RateErrorModel> em1 = 
-    CreateObjectWithAttributes<RateErrorModel> ("RanVar", u01, "ErrorRate", rate);
+    CreateObjectWithAttributes<RateErrorModel> ("RanVar", StringValue ("ns3::UniformRandomVariable[Min=0.0,Max=1.0]"), "ErrorRate", rate);
   Ptr<RateErrorModel> em2 = 
-    CreateObjectWithAttributes<RateErrorModel> ("RanVar", u01, "ErrorRate", rate);
+    CreateObjectWithAttributes<RateErrorModel> ("RanVar", StringValue ("ns3::UniformRandomVariable[Min=0.0,Max=1.0]"), "ErrorRate", rate);
 
   // This enables the specified errRate on both link endpoints.
   p2pInterfaces.Get (0)->SetAttribute ("ReceiveErrorModel", PointerValue (em1));