Base class for the RNG abstraction.
More...
#include <rng.hpp>
|
using | Impl = RandomImpl< Context > |
|
|
static auto | init (auto ... args) |
| RNG initialization. More...
|
|
static auto | deinit (auto ... args) |
| RNG deinitialization. More...
|
|
template<typename T > |
static T | get () |
| Get random values seeded by true entropy. More...
|
|
template<auto Context, template< addr_t > typename RandomImpl>
struct bsp::drv::Random< Context, RandomImpl >
Base class for the RNG abstraction.
- Template Parameters
-
Context | RNG context |
RandomImpl | Random Implementation |
◆ Impl
template<auto Context, template< addr_t > typename RandomImpl>
◆ Random() [1/2]
template<auto Context, template< addr_t > typename RandomImpl>
◆ Random() [2/2]
template<auto Context, template< addr_t > typename RandomImpl>
◆ deinit()
template<auto Context, template< addr_t > typename RandomImpl>
RNG deinitialization.
- Parameters
-
args | Platform specific arguments |
- Returns
- Success
◆ get()
template<auto Context, template< addr_t > typename RandomImpl>
template<typename T >
Get random values seeded by true entropy.
- Template Parameters
-
T | Type of data to get. Must be default and trivially constructible |
◆ init()
template<auto Context, template< addr_t > typename RandomImpl>
RNG initialization.
- Parameters
-
args | Platform specific arguments |
- Returns
- Success
◆ operator=()
template<auto Context, template< addr_t > typename RandomImpl>
The documentation for this struct was generated from the following file: