![]() |
Eclipse SUMO - Simulation of Urban MObility
|
A random number generator as proposed here https://prng.di.unimi.it/xoshiro256plusplus.c. More...
#include <RandHelper.h>
Public Member Functions | |
| void | discard (unsigned long long skip) |
| uint64_t | operator() () |
| void | seed (const uint64_t seed) |
Static Private Member Functions | |
| static uint64_t | rotl64 (const uint64_t x, const int k) |
| static uint64_t | splitmix64 (const uint64_t seed) |
Private Attributes | |
| uint64_t | state [4] |
Friends | |
| std::ostream & | operator<< (std::ostream &os, const XoShiRo256PlusPlus &r) |
| std::istream & | operator>> (std::istream &is, XoShiRo256PlusPlus &r) |
A random number generator as proposed here https://prng.di.unimi.it/xoshiro256plusplus.c.
Definition at line 49 of file RandHelper.h.
|
inline |
Definition at line 70 of file RandHelper.h.
|
inline |
Definition at line 58 of file RandHelper.h.
|
inlinestaticprivate |
Definition at line 88 of file RandHelper.h.
Referenced by operator()().
|
inline |
Definition at line 51 of file RandHelper.h.
References seed(), splitmix64(), and state.
Referenced by seed(), and splitmix64().
|
inlinestaticprivate |
Definition at line 92 of file RandHelper.h.
References seed().
Referenced by seed().
|
friend |
Definition at line 76 of file RandHelper.h.
References state.
|
friend |
Definition at line 81 of file RandHelper.h.
References state.
|
private |
Definition at line 99 of file RandHelper.h.
Referenced by operator()(), operator<<, operator>>, and seed().