Boost logo

Boost :

From: Dave Jenkins (david_at_[hidden])
Date: 2007-06-04 21:43:46


>> Andy wrote:
>>
>>> 4. Use the current seed as the random numbers directly. Will this
>>> solution provide 'good' uuids? That is, is this source of random
>>> numbers good enough?
>>
> Thanks! This is the assurance I needed.
>
> Andy.

Would this solution be much slower than using a static mt19937 engine?
Sorry to keep harping on speed, but I see a significant use case for the
UUID library in distributed systems generating lots of unique identifiers
independently. If it is significantly slower without generating "better"
random numbers than mt19937, then I would suggest a big note in the
documentation recommending the uuid::create(engine) function for
single-threaded applications.

Dave Jenkins


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