42 static uint64_t g_nextStreamIndex = 0;
53 "The global seed of all rng streams",
55 ns3::MakeIntegerChecker<uint32_t> ());
66 "The substream index used for all streams",
68 ns3::MakeIntegerChecker<int64_t> ());
76 return seedValue.
Get ();
96 int run = value.
Get();
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by "...
Hold a signed integer type.
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
#define NS_LOG_FUNCTION_NOARGS()
Output the name of the function.
hold a so-called 'global value'.
Declaration of the various ns3::Config functions and classes.
static void SetRun(uint64_t run)
Set the run number of simulation.
static uint64_t GetRun(void)
Get the current run number.
ns3::RngSeedManager declaration.
static ns3::GlobalValue g_rngSeed("RngSeed","The global seed of all rng streams", ns3::IntegerValue(1), ns3::MakeIntegerChecker< uint32_t >())
ns3::GlobalValue declaration.
static uint32_t GetSeed(void)
Get the current seed value which will be used by all subsequently instantiated RandomVariableStream o...
Declaration of Attribute helper macros.
static void SetSeed(uint32_t seed)
Set the seed.
void SetGlobal(std::string name, const AttributeValue &value)
Integer attribute value declarations and template implementations.
static ns3::GlobalValue g_rngRun("RngRun","The substream index used for all streams", ns3::IntegerValue(1), ns3::MakeIntegerChecker< int64_t >())
static uint64_t GetNextStreamIndex(void)
Get the next automatically assigned stream index.
static uint64_t g_nextStreamIndex
void GetValue(AttributeValue &value) const
Get the value.