
2 Sep
2004
2 Sep
'04
11:43 a.m.
Neal D. Becker wrote:
There is already a func that can be used to set the state, but it has a strange signature that makes it a bit awkward:
template<class It> void seed(It& first, It last)
Is it really intended that first arg is reference, but last is not?
Yes, it is. The motivation is to be able to seed two engines from the same range: e1.seed( first, last ); // consumes input and increments first e2.seed( first, last ); // use the rest