MCPcopy Create free account
hub / github.com/csmith-project/csmith / PureRandomHexDigits

Function PureRandomHexDigits

src/random.cpp:86–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86std::string PureRandomHexDigits( int num )
87{
88 if (!CGOptions::is_random()) {
89 RNDNUM_GENERATOR old;
90 old = RandomNumber::SwitchRndNumGenerator(rDefaultRndNumGenerator);
91 std::string rv = RandomHexDigits(num);
92 RandomNumber::SwitchRndNumGenerator(old);
93 return rv;
94 }
95 else {
96 return RandomHexDigits(num);
97 }
98}
99
100std::string PureRandomDigits( int num )
101{

Callers

nothing calls this directly

Calls 1

RandomHexDigitsFunction · 0.85

Tested by

no test coverage detected