--- a/src/mesh/test/dot11s/hwmp-target-flags-regression.cc Fri Aug 17 07:00:24 2012 -0700
+++ b/src/mesh/test/dot11s/hwmp-target-flags-regression.cc Fri Aug 17 13:31:40 2012 -0700
@@ -20,7 +20,8 @@
#include "ns3/mesh-helper.h"
#include "ns3/simulator.h"
-#include "ns3/random-variable.h"
+#include "ns3/random-variable-stream.h"
+#include "ns3/rng-seed-manager.h"
#include "ns3/mobility-helper.h"
#include "ns3/double.h"
#include "ns3/uinteger.h"
@@ -54,7 +55,8 @@
void
HwmpDoRfRegressionTest::DoRun ()
{
- SeedManager::SetSeed (12345);
+ RngSeedManager::SetSeed (12345);
+ RngSeedManager::SetRun (7);
CreateNodes ();
CreateDevices ();
InstallApplications ();
@@ -130,6 +132,9 @@
mesh.SetMacType ("RandomStart", TimeValue (Seconds (0.1)));
mesh.SetNumberOfInterfaces (1);
NetDeviceContainer meshDevices = mesh.Install (wifiPhy, *m_nodes);
+ // Four nodes, one device per node, three streams per mac
+ int64_t streamsUsed = mesh.AssignStreams (meshDevices, 0);
+ NS_TEST_EXPECT_MSG_EQ (streamsUsed, (4*3), "Stream assignment unexpected value");
// 3. setup TCP/IP
InternetStackHelper internetStack;
internetStack.Install (*m_nodes);