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

Function PureRandomDigits

src/random.cpp:100–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98}
99
100std::string PureRandomDigits( int num )
101{
102
103 if (!CGOptions::is_random()) {
104 RNDNUM_GENERATOR old;
105 old = RandomNumber::SwitchRndNumGenerator(rDefaultRndNumGenerator);
106 std::string rv = RandomDigits(num);
107 RandomNumber::SwitchRndNumGenerator(old);
108 return rv;
109 }
110 else {
111 return RandomDigits(num);
112 }
113}
114
115unsigned int
116pure_rnd_upto(const unsigned int n, const Filter *f, const std::string* where)

Callers

nothing calls this directly

Calls 1

RandomDigitsFunction · 0.85

Tested by

no test coverage detected