20#include <test/jtx/Env.h>
22#include <xrpl/beast/utility/temp_dir.h>
23#include <xrpl/crypto/csprng.h>
36 auto rand_val = engine();
37 BEAST_EXPECT(rand_val >= engine.min());
38 BEAST_EXPECT(rand_val <= engine.max());
41 engine(&twoByte,
sizeof(uint16_t));
58BEAST_DEFINE_TESTSUITE(CryptoPRNG, core,
ripple);
void pass()
Record a successful test condition.
testcase_t testcase
Memberspace for declaring test cases.
void fail(String const &reason, char const *file, int line)
Record a failure.
void run() override
Runs the suite.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
csprng_engine & crypto_prng()
The default cryptographically secure PRNG.