[ILUG] Generate a GUID
chris.higgins at horizon.ie
Fri Sep 7 10:56:23 IST 2001
> On Thu, Sep 06, 2001 at 05:32:00PM +0100, Tim O'Donovan wrote:
> > If your machine has an Ethernet card, why not just
> > use the MAC Address? That's globally unique. I'm
> > pretty sure you could find some C++ code on the web
> > to get the MAC address.
> the uuidgen mentioned before would be better.
> a) mac addresses are only unique on that ethernet network.
The MAC address burned into the card *is* unique (well, except for the
batch of korean made ethernet cards that all had the same MAC address).
Most cards though, copy this unique address into some RAM on the card,
and then use it from there - so you can change it.
There are some network protocols that set the MAC address based
on the upper layer network protocol. DECnet IV is one of those.
So - if you can read the real MAC address, it gives you a unique
> i know of at
> least one company that reused ethernet addresses. i've reused ethernet
> addresses in order to fool my cable modem (*sniffle*).
> b) multiple users might be on a single machine.
> c) there might be 0 or more than one card.
> as an aside, a useful tool for generating guid's would be a cpuid.
> combine a cpuid, the time (to the millisecond), a users uid and a random
> number and you'd be pretty sure it would be the only one. intel nixes
> this idea because except for their more modern processors, they don't
> have a cpuid. pretty much every other processor has one.
> cue ignorant privacy advocates...
Oooohhh flamebait :)
> kevin at suberic.net simple four line sigs -
> fork()'ed on 37058400 bandwidth friendly; nice to do.
> meatspace place: home some admins clueless.
> http://suberic.net/~kevin --netiquette haiku 2001
> Irish Linux Users' Group: ilug at linux.ie
> http://www.linux.ie/mailman/listinfo/ilug for (un)subscription information.
> List maintainer: listmaster at linux.ie
** Chris Higgins e: chris.higgins at horizon.ie **
** Technical Business Development tel: +353-1-6204916 **
** Horizon Technology Group fax: +353-1-6204949 **
More information about the ILUG