From: Jos Hickson (jos.hickson_at_[hidden])
Date: 2007-06-01 12:13:23
On 01/06/07, Dave Jenkins <david_at_[hidden]> wrote:
> You did a nice job speeding up the uuid::create(engine) function to 0.4
> seconds for 1 million UUIDs. But now the uuid::create() function is
> extremely slow - 131 seconds for 1 million UUIDs (source code below). Can
> you change it to use a static mt19937 engine?
On a related note: doesn't reseeding the random number generator every
time uuid::create() is called reduce the quality of the random numbers
from the mt19937 engine? Doesn't the randomness then come from the
seeding mechanism which is used? So, on the whole it would indeed be
better to use a static engine if possible.
-- Jos Hickson Software Engineer RawFlow Inc Old Pump House | 19 Hooper Street | London E1 8BU International: +44 (0)207 480 4220 Fax: +44 (0)207 481 4343 URL: www.rawflow.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk