X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fbase%2Frandom.hh;h=34107c76f322a9ff1dc180316f78156146e8fb69;hb=b312a41f21b6f76607fe7480a915a4c5093386a3;hp=401ba086ff16d56fca9ed2fcb00e18f0e3517180;hpb=90f42bf3ad99f3c99323773e7e26db7e66597fb9;p=gem5.git diff --git a/src/base/random.hh b/src/base/random.hh index 401ba086f..34107c76f 100644 --- a/src/base/random.hh +++ b/src/base/random.hh @@ -29,14 +29,20 @@ * Ali Saidi */ +/* + * Mersenne Twister random number generator has a period of + * 2^19937-1. + * + * The actual math is in its own file to keep the license clear. + */ + #ifndef __BASE_RANDOM_HH__ #define __BASE_RANDOM_HH__ #include #include -#include "base/range.hh" -#include "sim/host.hh" +#include "base/types.hh" class Checkpoint; @@ -203,13 +209,6 @@ class Random return _random(min, max); } - template - T - random(const Range &range) - { - return _random(range.start, range.end); - } - // [0,1] double gen_real1()