MCPcopy Create free account
hub / github.com/ElementsProject/elements / GetUintFromEnv

Function GetUintFromEnv

src/test/util/setup_common.cpp:67–72  ·  view source on GitHub ↗

Return the unsigned from the environment var if available, otherwise 0 */

Source from the content-addressed store, hash-verified

65
66/** Return the unsigned from the environment var if available, otherwise 0 */
67static uint256 GetUintFromEnv(const std::string& env_name)
68{
69 const char* num = std::getenv(env_name.c_str());
70 if (!num) return {};
71 return uint256S(num);
72}
73
74void Seed(FastRandomContext& ctx)
75{

Callers 1

SeedFunction · 0.85

Calls 1

uint256SFunction · 0.85

Tested by

no test coverage detected