Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2007-06-01 17:25:40

Andy wrote:

> I will look into using all of the randomness produced by the random
> digest helper function. I did look at the function
> mersenne_twister::seed(It& first, It last), but couldn't get it to
> work.
> I take another shot at it.

You'll need to do that if you go the static engine route.

An easier way to fix the current create() is just to return the digest
as-is. A short sequence produced by a freshly seeded RNG is no more random
than the seed; nothing is gained (in this case) by passing the digest
through the engine.

Boost list run by bdawes at, gregod at, cpdaniel at, john at