A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
rng-seed-manager.h
1 #ifndef RNG_SEED_MANAGER_H
2 #define RNG_SEED_MANAGER_H
3 
4 #include <stdint.h>
5 
6 namespace ns3 {
7 
9 {
10 public:
25  static void SetSeed (uint32_t seed);
26 
33  static uint32_t GetSeed (void);
34 
56  static void SetRun (uint64_t run);
61  static uint64_t GetRun (void);
62 
63  static uint64_t GetNextStreamIndex(void);
64 
65 };
66 
67 // for compatibility
69 
70 } // namespace ns3
71 
72 
73 #endif /* RNG_SEED_MANAGER_H */
static void SetRun(uint64_t run)
Set the run number of simulation.
static uint64_t GetRun(void)
static uint32_t GetSeed(void)
Get the seed value.
static void SetSeed(uint32_t seed)
set the seed it will duplicate the seed value 6 times