1#include <xrpl/crypto/csprng.h>
3#include <doctest/doctest.h>
10 auto rand_val = engine();
11 CHECK(rand_val >= engine.min());
12 CHECK(rand_val <= engine.max());
14 engine(&twoByte,
sizeof(uint16_t));
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
csprng_engine & crypto_prng()
The default cryptographically secure PRNG.