[Insight-developers] gdcmUtil.cxx polling for a MAC Address
Henning Meyer
tutmann at gmail.com
Mon Apr 21 09:41:00 EDT 2008
> The hardest part is finding a way to fit everything into 64 bytes. I also
> use a counter nowadays, rather than just "a few random bytes", since I
> found that if I asked for UIDs fast enough I could generate them faster
> than millisecond precision making the timer insufficient for
> disambiguation;
> the counter value took up fewer bytes than a sufficiently random number.
This is exactly what encountered in my code, see my patch a few
minutes ago. I now used
FNV-Hash (http://en.wikipedia.org/wiki/Fowler_Noll_Vo_hash) to get the
non-root part into 20 Digits.
Henning
More information about the Insight-developers
mailing list