Raven Engine v0.1
A modern 3D Game Engine
Loading...
Searching...
No Matches
Entropy.h File Reference

Provides entropy utilities for generating random seeds. More...

#include <utility>

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.

Detailed Description

Provides entropy utilities for generating random seeds.

Contains functionality to obtain high-quality entropy-based seed pairs for use in random number generators, including fallbacks when system entropy is unavailable. Supports deterministic seeding for testing.