
13 Aug
2008
13 Aug
'08
8:59 a.m.
Richard Webb wrote:
The std_run_random test is failing on VC9 SP1 (http://tinyurl.com/64xsr5), seemingly because the mersenne_twister implementation doesn't like being seeded with 0:
///////////////
void seed(unsigned long _X0 = default_seed) { // set initial values from specified value _RNG_ASSERT(0 < _X0, "invalid argument for mersenne_twister::seed");
///////////////
Is that a bug in SP1, or an incorrect test?
Ah, I believe it may be the test that's incorrect: I've checked the TR text and it's very specific about what seed does, and a zero value makes no real sense. I'll fix the test. Thanks for the catch, John.