Boost logo

Boost :

From: Matthias Troyer (troyer_at_[hidden])
Date: 2006-11-13 15:04:45


On Nov 13, 2006, at 5:15 PM, Andy wrote:

>
> It is still possible for 2 calls to create_v4() to create the same
> guid
> if the 2 calls were in different processes and the internal random
> number
> generator was seeded with the same value. I am always looking for
> better
> ways to seed the random number generator.

If you use the clock as seed and I call the function from 128'000
nodes of a BlueGene/L at the same time then I'm sure to get identical
guid
>
> I plan to add a name-based create function (version 5) in the future.
> This can be used to ensure that two computers (or nodes in a parallel
> computer) will never create the same guid by ensuring that each
> computer
> (or node) uses a different 'name space identifier'

I look forward to this

Matthias


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