Boost logo

Boost :

From: John Maddock (john_at_[hidden])
Date: 2008-08-13 04:59:32


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.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk