Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

RunInstallerCalibration

procedure RunInstallerCalibration; overload;
Full install-time calibration run: drive the real noise source, assess every channel with the SP 800-90B 6.3 estimator suite, and drive the claim from the worst channel -- claim = min(worstH / cSafetyDivisor, shipped default) (one-way DOWN), iterations sized so a round carries ~cTargetBitsPerRound bits at that claim (one-way UP, capped). aRuns > 1 repeats the capture and takes the MINIMUM worst-channel across runs (jitter measurement is noisy run-to-run; the most conservative sample must win). Any stalled/health-failing run aborts without writing. Sets ExitCode and prints a short report.

The overload without arguments parses the command line: "-runs <N>" (in any position) sets the run count, and a bare argument is the output path (default <exedir>\entropy_claim.cfg).

RunInstallerCalibration is meant to BE the body of a single-line console program that the installer builds with ENTROPY_CALIBRATE defined and runs on the target (e.g. "CalibrateEntropy -runs 5"):

program CalibrateEntropy; {$APPTYPE CONSOLE uses stEntropyCalibration; begin RunInstallerCalibration; end.

Building it taps the raw noise source; it is an installer/lab tool and must not be shipped as part of the product runtime.
procedure RunInstallerCalibration(const aOutPath: string; aRuns: Integer = 1); overload;