Generic random number generator abstraction layer for bare-metal Ada applications.
rng_generic provides a hardware-independent RNG interface for embedded systems. It abstracts hardware RNG peripherals through generic instantiation.
package RNG_Types is
type Random_Value is new UInt32;
end RNG_Types;generic
with procedure Driver_Initialize;
with function Driver_Is_Initialized return Boolean;
with function Driver_Random return RNG_Types.Random_Value;
package RNG_Interface is
procedure Initialize;
function Random return RNG_Types.Random_Value;
end RNG_Interface;[[depends-on]]
rng_generic = "^0.1.0"MIT OR Apache-2.0 WITH LLVM-exception