10#include "../utility/utility.hpp"
11#include "../macros.hpp"
12#include <hikocpu/hikocpu.hpp>
19hi_export_module(hikogui.random.seed : intf);
21hi_export
namespace hi::inline
v1 {
40 [[nodiscard]] T operator()()
const
45 [[nodiscard]] T operator()()
const requires(std::has_unique_object_representations_v<T> and not std::is_pointer_v<T>)
47 auto buffer =
std::array<uint8_t,
sizeof(T)>{};
49 return std::bit_cast<T>(buffer);
DOXYGEN BUG.
Definition algorithm_misc.hpp:20
void generate_seed(void *ptr, size_t size)
Load a random seed.
Definition seed_win32_impl.hpp:18
Randomly generate an object.
Definition seed_intf.hpp:39