Bertini 2 d882924 (2026-10-06 19:56 UTC)
Numerical algebraic geometry library (C++ core)
Loading...
Searching...
No Matches
bertini::algorithm::RandomConfig Struct Reference

The RNG seed a classic Bertini input file asks for, via randomseed: N;. More...

#include <config.hpp>

Public Attributes

unsigned long random_seed = 0
 The classic input's seed; 0 means draw one from entropy and report it.

Detailed Description

The RNG seed a classic Bertini input file asks for, via randomseed: N;.

As in Bertini 1, random_seed == 0 (the default) means "draw from entropy": the command-line program then draws one and reports it, so the run can be reproduced. The library API differs: to SetGlobalSeed and bertini.set_random_seed, 0 is an ordinary seed. Must be applied before system construction (gamma, patch, TD-constants).

Member Data Documentation

◆ random_seed

unsigned long bertini::algorithm::RandomConfig::random_seed = 0

The classic input's seed; 0 means draw one from entropy and report it.