aboutsummaryrefslogtreecommitdiffstats
path: root/src/rng/rng.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Move EntropySource base class to new entropy_src.h (which allows the ↵lloyd2008-10-261-8/+0
| | | | | | implementations to decouple from knowing about RandomNumberGenerator).
* Move rng.{cpp,h} from core to rng/ topdirlloyd2008-10-261-0/+44
Add a new class AutoSeeded_RNG that is a RandomNumberGenerator that wraps up the logic formerly in RandomNumberGenerator::make_rng. make_rng in fact now just returns a new AutoSeeded_RNG object. AutoSeeded_RNG is a bit more convenient because - No need to use auto_ptr - No need to dereference (same syntax everywhere - it's an underestimated advantage imo) Also move the code from timer/timer_base to timer/