9#include "seed_intf.hpp"
10#include "../utility/utility.hpp"
11#include "../macros.hpp"
14hi_export_module(hikogui.random.seed : impl);
16hi_export
namespace hi::inline
v1 {
20 auto status = BCryptGenRandom(NULL,
static_cast<PUCHAR
>(ptr), narrow_cast<ULONG>(size), BCRYPT_USE_SYSTEM_PREFERRED_RNG);
21 if (not SUCCEEDED(status)) {
Rules for working with win32 headers.
hi_export std::string get_last_error_message()
Get the OS error message from the last error received on this thread.
Definition exception_win32_impl.hpp:30
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