Boost logo

Boost :

From: Matthias Troyer (troyer_at_[hidden])
Date: 2007-05-07 15:55:53


On 7 May 2007, at 19:41, Christian Henning wrote:

>>
>>> I'd really like to see the MAC address + time generator. I realize
>>> that this might be a pain to do in a cross-platform manner, but it
>>> would make the library more complete in my eyes, and more likely for
>>> me to recommend it to my colleagues. Is there a way that the library
>>> could be engineered so that we could provide our own generation
>>> implementation?
>>
>> I agree that it would be very useful to have a time based guid
>> generator.
>> I will continue to look in to this. In the meantime, one could
>> write a
>> function to create guids based on anything they want, eg:
>
> How useful can seed using MAC address + time be in system with
> multiple cores? Shouldn't it be CoreID + time? Just image you have 16
> cores and just one MAC address. Is such an assumption valid to make?

You would need process/thread number + mac address + time

Matthias


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