DLPrimitives
|
CPU implementation of Philox 4-32-10 algorithm. More...
Typedefs | |
typedef std::array< std::uint32_t, result_items > | uint_result_type |
Each round returns 4 items - result. | |
typedef std::array< float, result_items > | float_result_type |
Each round returns 4 items - in range[0.0,1.0f) | |
Functions | |
float_result_type | calculate_float (std::uint64_t seed, std::uint64_t seq) |
Get float result in range[0.0,1.0f) | |
uint_result_type | calculate_integer (std::uint64_t seed, std::uint64_t seq) |
Get uint32 result in range[0::UINT_MAX]. | |
Variables | |
constexpr int | result_items = 4 |
CPU implementation of Philox 4-32-10 algorithm.