I'm not quite following here, I'm sorry.
I believe David was asking whether I called my own function with
parameters min == max, which would have resulted in a call to
boost::random_number_generator
matts_temp_id wrote:
I presume that you sometimes call random with min = max ?
Well, that's not my intention, but I can't assert that it didn't happen in this case - there are some data-dependent invocations of the random number generator.
The current code does not handle the case min == max. There have been other people who requested that this should work and do the obvious thing (i.e. always return min).
I've checked in to the current CVS a fix that allows min == max for uniform_int.
Jens Maurer