Function random_bits¶
function random_bits(random_state &) base¶
template <size_t N>
requires(N > sizeof(random_state))
KFR_INTRINSIC vec<u8, N> random_bits(random_state& state) Generates more than 16 bytes of random data.
| N | Number of random bytes to generate (N > 16). |
| state | Reference to the random number generator state. |
| A vector of N random bytes. |
Note
This generator is stateless beyond its internal 128-bit state. It holds no internal buffer, so **each call to random_bits advances the state** and generates **at least 128 bits** of random data. To maintain deterministic behavior across runs, always request the same size N in each usage scenario.
Fully qualified name: kfr::random_bits(random_state &)
Declared at base/random_bits.hpp:204
This file was generated by cxxdox, a C++ documentation generator based on MkDocs Material and libclang.