19 const char* num = std::getenv(env_name.c_str());
28 static const std::string RANDOM_CTX_SEED{
"RANDOM_CTX_SEED"};
31 LogPrintf(
"%s: Setting random seed for current tests to %s=%s\n", __func__, RANDOM_CTX_SEED, seed.GetHex());
uint256 GetRandHash() noexcept
void Seed(FastRandomContext &ctx)
Seed the given random ctx or use the seed passed in via an environment var.
static uint256 GetUintFromEnv(const std::string &env_name)
Return the unsigned from the environment var if available, otherwise 0.
FastRandomContext g_insecure_rand_ctx
This global and the helpers that use it are not thread-safe.
uint256 uint256S(const char *str)