Lumiera  0.pre.03
»edit your freedom«
random.cpp File Reference

Go to the source code of this file.

Description

Implementation details and common storage for random number generation.

Todo:
3/2024 work out how some executions or performances are configured reproducibly.

Definition in file random.cpp.

#include "lib/random.hpp"
#include <string>

Classes

class  EntropyNucleus
 
class  EternalNucleus
 

Functions

void randomiseRandomness ()
 inject true randomness into the defaultGen
 

Variables

Random defaultGen {eternalNucleus}
 a global default RandomSequencer for mundane purposes
 
const string ENTROPY_SOURCE_SPEC {"/dev/random"}
 
Random entropyGen {entropyNucleus}
 a global RandomSequencer seeded with real entropy
 
EntropyNucleus entropyNucleus {ENTROPY_SOURCE_SPEC}
 static global entropy source instance
 
EternalNucleus eternalNucleus
 

Namespaces

 lib
 Implementation namespace for support and library code.