Base Framework
|
#include <base/Random.h>
Static Public Member Functions | |
static RandomInputStream & | getRandomInputStream () noexcept |
static void | fill (uint8 *dest, const uint8 *end) noexcept |
template<typename TYPE , MemorySize SIZE> | |
static void | fill (TYPE(&buffer)[SIZE]) noexcept |
template<typename TYPE > | |
static TYPE | random () noexcept |
static unsigned int | randomDirect () noexcept |
template<> | |
int8 | random () noexcept |
template<> | |
int16 | random () noexcept |
template<> | |
int32 | random () noexcept |
template<> | |
int64 | random () noexcept |
template<> | |
int128 | random () noexcept |
template<> | |
uint8 | random () noexcept |
template<> | |
uint16 | random () noexcept |
template<> | |
uint32 | random () noexcept |
template<> | |
unsigned long | random () noexcept |
template<> | |
unsigned long long | random () noexcept |
template<> | |
uint128 | random () noexcept |
MT-safe random generator.
|
inlinestaticnoexcept |
Fills fixed size array.
|
staticnoexcept |
Fills given buffer.
|
staticnoexcept |
Returns thread local random input stream. Do not preserve source outside of execution scope.
|
staticnoexcept |