
2 May
2010
2 May
'10
5:36 p.m.
On 2 May 2010 13:22, Chad Nelson <chad.thecomfychair@gmail.com> wrote:
It *would* simplify things greatly for me. I'm just concerned that it might make things more difficult for someone who just wants to use the library for a quick one-off test. My goal is, as much as possible, to stay out of the way of the person using the library -- for that, having a default "good enough" random generator is pretty much a necessity.
How about, then, you just provide a boost::xint::default_random_generator type (or typedef)? Users can then create a global instance for their simple testing needs. In my experience I usually end up wrapping the generator for the specific use anyways, so the code difference is tiny.