ENTROPY_ASSESSMENT and ENTROPY_CALIBRATE are lab/installer build defines and must NEVER be defined in a shipping product build: ENTROPY_ASSESSMENT writes the raw noise samples to disk, and ENTROPY_CALIBRATE taps the raw noise source in memory for install-time calibration. (Deliberately NOT a $MESSAGE WARN directive: that would fire on the legitimate lab/installer builds too.)
Feature notes: DRBG and entropy source (SP 800-90) notes
inherits from TInterfacedObject
constructor Create;
destructor Destroy; override;
procedure Die;
property Health: tEntropyHealthMonitor read fHealth;
property Capture: tEntropyRawCapture read fCapture;
inherits from tBaseEntropy
constructor Create;
destructor Destroy; override;
class function SelfTest: Boolean; override;
function Health: tEntropyHealthMonitor;
function Capture: tEntropyRawCapture;
FPC: PEventState + the System-unit BasicEvent* API. NOT RTLEvent - that is auto-reset and its WaitFor cannot report a timeout, whereas this event is created MANUAL-reset and EvWait must distinguish signalled from timed out. Also avoids fcl-base SyncObjs, which links pthread/libc directly and so cannot be used by the libc-free big-endian targets.
Inner dimension is dynamic (was 0..cCollectIterations-1) so the per-round sample count is settable at construction; sized to fIterations in Create.