summaryrefslogtreecommitdiff
path: root/src/base/random_mt.cc
AgeCommit message (Collapse)Author
2014-09-03base: Use STL C++11 random number generationAndreas Hansson
This patch changes the random number generator from the in-house Mersenne twister to an implementation relying entirely on C++11 STL. The format for the checkpointing of the twister is simplified. As the functionality was never used this should not matter. Note that this patch does not actually make use of the checkpointing functionality. As the random number generator is not thread safe, it may be sensible to create one generator per thread, system, or even object. Until this is decided the status quo is maintained in that no generator state is part of the checkpoint.
2011-06-02copyright: clean up copyright blocksNathan Binkert
2008-09-27gcc: Add extra parens to quell warnings.Nathan Binkert
Even though we're not incorrect about operator precedence, let's add some parens in some particularly confusing places to placate GCC 4.3 so that we don't have to turn the warning off. Agreed that this is a bit of a pain for those users who get the order of operations correct, but it is likely to prevent bugs in certain cases.
2007-10-31Base: Rework the way M5 provides and creates random numbers.Ali Saidi
--HG-- extra : convert_revision : 10ec3484647b3acb8e821f8520f97d535e41e861