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

Method switch_to_default_generator

src/SimpleDeltaRndNumGenerator.cpp:205–216  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

203}
204
205void
206SimpleDeltaRndNumGenerator::switch_to_default_generator()
207{
208 if (DeltaMonitor::no_delta_reduction() || rand_depth_ < impl_->random_point_ || impl_->filter_depth_ != 0)
209 return;
210
211 //RNDNUM_GENERATOR old;
212 //old = RandomNumber::SwitchRndNumGenerator(rDefaultRndNumGenerator);
213 RandomNumber::SwitchRndNumGenerator(rDefaultRndNumGenerator);
214 DefaultRndNumGenerator *generator = dynamic_cast<DefaultRndNumGenerator*>(RandomNumber::GetRndNumGenerator());
215 generator->set_rand_depth(impl_->rand_depth_);
216}
217
218void
219SimpleDeltaRndNumGenerator::OutputStatistics(ostream &out)

Callers

nothing calls this directly

Calls 1

set_rand_depthMethod · 0.80

Tested by

no test coverage detected