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

Method RandomHexDigits

src/SimpleDeltaRndNumGenerator.cpp:164–174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

162}
163
164std::string
165SimpleDeltaRndNumGenerator::RandomHexDigits( int num )
166{
167 std::string str;
168 const char* hex1 = AbsRndNumGenerator::get_hex1();
169 while (num--) {
170 int x = random_choice(16, NULL, NULL);
171 str += hex1[x];
172 }
173 return str;
174}
175
176std::string
177SimpleDeltaRndNumGenerator::RandomDigits( int num )

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected