Boost logo

Boost :

From: John Maddock (John_Maddock_at_[hidden])
Date: 2000-04-06 06:07:18


Beman,

Sorry, but I have another one for you, in the docs for min_rand it isn't
clear to me what legal seed values can be passed to the constructor - the
constructor just asserts if you pass an illegal value in, maybe the
constructor could be changed from:

  explicit min_rand( long seed_value=1 ) : value( seed_value )
                              { assert( value > 0 && value <= modulus ); }

to:

  explicit min_rand( unsigned long seed_value=1 ) : value( seed_value %
modulus )
                              { }

This would make the library easier to use IMO, but would it have any
adverse effects?

- John.


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