Raven Engine v0.1
Loading...
Searching...
No Matches
Entropy.cpp File Reference
#include "Crux/Random/Entropy.h"
#include "Crux/Hash/Hash.h"
#include <random>
#include <chrono>
#include <mutex>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>

Namespaces

namespace  Crux
namespace  Crux::Entropy

Functions

std::pair< unsigned long long, unsigned long long > Crux::Entropy::GetSeedPair () noexcept
 Retrieves a seed pair for random number generation.
void Crux::Entropy::ForceSeed (unsigned long long state, unsigned long long seq) noexcept
 Overrides entropy generation with a forced seed pair.
void Crux::Entropy::ClearForcedSeed ()
 Clears any previously forced seed, restoring normal entropy behavior.