Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(244)

Unified Diff: src/test/static-routing-test-suite.cc

Issue 6421061: replace src/application usage of RandomVariable with RandomVariableStream
Patch Set: Created 11 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/test/static-routing-test-suite.cc
===================================================================
--- a/src/test/static-routing-test-suite.cc
+++ b/src/test/static-routing-test-suite.cc
@@ -34,7 +34,6 @@
#include "ns3/packet-socket-address.h"
#include "ns3/point-to-point-helper.h"
#include "ns3/pointer.h"
-#include "ns3/random-variable.h"
#include "ns3/simulator.h"
#include "ns3/string.h"
#include "ns3/test.h"
@@ -136,8 +135,8 @@
uint16_t port = 9; // Discard port (RFC 863)
OnOffHelper onoff ("ns3::UdpSocketFactory",
Address (InetSocketAddress (ifInAddrC.GetLocal (), port)));
- onoff.SetAttribute ("OnTime", RandomVariableValue (ConstantVariable (1)));
- onoff.SetAttribute ("OffTime", RandomVariableValue (ConstantVariable (0)));
+ onoff.SetAttribute ("OnTime", StringValue ("ns3::ConstantRandomVariable[Constant=1]"));
+ onoff.SetAttribute ("OffTime", StringValue ("ns3::ConstantRandomVariable[Constant=0]"));
onoff.SetAttribute ("DataRate", DataRateValue (DataRate (6000)));
ApplicationContainer apps = onoff.Install (nA);
apps.Start (Seconds (1.0));

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b