Lumiera 0.pre.04
»edit your freedom«
Loading...
Searching...
No Matches
random.cpp File Reference

Implementation details and common storage for random number generation. More...

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>

Namespaces

namespace  lib
 Implementation namespace for support and library code.
 
namespace  lib::anonymous_namespace{random.cpp}
 

Classes

class  EntropyNucleus
 
class  EternalNucleus
 

Functions

SeedNucleusseedFromDefaultGen ()
 draw seed another Generator from the default RandomSequencer

 
void randomiseRandomness ()
 inject true randomness into the defaultGen
 

Variables

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