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

Method RandomDigits

src/AbsRndNumGenerator.cpp:150–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148}
149
150std::string
151AbsRndNumGenerator::RandomDigits( int num )
152{
153 std::string str;
154 while ( num-- )
155 {
156 str += dec1[genrand()%10];
157 }
158
159 return str;
160}
161
162const char *
163AbsRndNumGenerator::get_hex1()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected