20#include <xrpl/crypto/csprng.h>
22#include <doctest/doctest.h>
26TEST_CASE(
"get values")
29 auto rand_val = engine();
30 CHECK(rand_val >= engine.min());
31 CHECK(rand_val <= engine.max());
33 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.