MT alignement

This commit is contained in:
monarch dodra 2014-01-22 14:55:13 +01:00
parent 8b4e152a09
commit f680ea030f

View file

@ -528,6 +528,7 @@ struct MersenneTwisterEngine(UIntType, size_t w, size_t n, size_t m, size_t r,
{ {
///Mark this as a Rng ///Mark this as a Rng
enum bool isUniformRandom = true; enum bool isUniformRandom = true;
/** /**
Parameter for the generator. Parameter for the generator.
*/ */
@ -723,9 +724,10 @@ gen.seed(unpredictableSeed);
n = gen.front; // different across runs n = gen.front; // different across runs
---- ----
*/ */
alias MersenneTwisterEngine!(uint, 32, 624, 397, 31, 0x9908b0df, 11, 7, alias Mt19937 = MersenneTwisterEngine!(uint, 32, 624, 397, 31,
0x9d2c5680, 15, 0xefc60000, 18) 0x9908b0df, 11, 7,
Mt19937; 0x9d2c5680, 15,
0xefc60000, 18);
unittest unittest
{ {