base: Use STL C++11 random number generation
Review Request #2353 - Created Aug. 17, 2014 and submitted
| Information | |
|---|---|
| Andreas Hansson | |
| gem5 | |
| default | |
| Reviewers | |
| Default | |
Changeset 10313:8f3715f67df0 --------------------------- base: Use STL C++11 random number generation 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.
The patch seems fine. I think we should declare rngs to be thread local to begin with and have different seeds for each of these rng to avoid any correlation.
