Skip to content

Latest commit

 

History

History
42 lines (29 loc) · 803 Bytes

File metadata and controls

42 lines (29 loc) · 803 Bytes

rng_generic

Generic random number generator abstraction layer for bare-metal Ada applications.

Overview

rng_generic provides a hardware-independent RNG interface for embedded systems. It abstracts hardware RNG peripherals through generic instantiation.

API

RNG_Types

package RNG_Types is
   type Random_Value is new UInt32;
end RNG_Types;

RNG_Interface

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;

Integration

[[depends-on]]
rng_generic = "^0.1.0"

License

MIT OR Apache-2.0 WITH LLVM-exception