Go to the documentation of this file.
71 static std::mutex fsLock;
72 std::unique_lock<std::mutex> slock(fsLock);
84 =
static_cast<std::uint_fast32_t
>(
85 std::chrono::duration_cast<std::chrono::microseconds>(
87 - std::chrono::system_clock::time_point()).count());
98 static std::mutex rngMutex;
99 std::unique_lock<std::mutex> slock(rngMutex);
100 static std::ranlux24_base sGen;
101 static std::uniform_int_distribution<> sDist(1, 1000000000);
107 Seed::Seed() : userSetSeed(0), firstSeedGenerated(false), firstSeedValue(0)
static void setUserSetSeed(std::uint_fast32_t seed)
static bool isFirstSeedGenerated()
static std::uint_fast32_t getUserSetSeed()
static std::uint_fast32_t getNextSeed()
std::uint_fast32_t userSetSeed
The seed the user asked for (cannot be 0)
static std::uint_fast32_t getFirstSeed()
std::uint_fast32_t firstSeedValue
The value of the first seed.
FCL_EXPORT point now(void)
Get the current time point.
static Seed & getInstance()
bool firstSeedGenerated
Flag indicating whether the first seed has already been generated or not.
fcl
Author(s):
autogenerated on Tue Dec 5 2023 03:40:48