1#include <xrpl/crypto/csprng.h>
3#include <gtest/gtest.h>
9TEST(csprng, get_values)
12 auto randVal = engine();
13 EXPECT_GE(randVal, engine.min());
14 EXPECT_LE(randVal, engine.max());
16 engine(&twoByte,
sizeof(uint16_t));
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
CsprngEngine & cryptoPrng()
The default cryptographically secure PRNG.