1#include <xrpl/crypto/csprng.h>
3#include <gtest/gtest.h>
7TEST(csprng, get_values)
10 auto rand_val = engine();
11 EXPECT_GE(rand_val, engine.min());
12 EXPECT_LE(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.