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.
This commit is contained in:
Andreas Hansson
2014-09-03 07:42:55 -04:00
parent 2698e73966
commit 83a46bfc09
4 changed files with 78 additions and 386 deletions

View File

@@ -51,7 +51,6 @@ Source('misc.cc')
Source('output.cc')
Source('pollevent.cc')
Source('random.cc')
Source('random_mt.cc')
if env['TARGET_ISA'] != 'null':
Source('remote_gdb.cc')
Source('socket.cc')