LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] Generate a GUID

[ILUG] Generate a GUID

Tim O'Donovan tim.odonovan at sun.com
Thu Sep 6 17:32:07 IST 2001


Fergal Moran wrote:
> 
> >> From: Fergal Moran [mailto:fergal.moran at wasptech.com]
> >> How do I get a globally unique identifier in C/C++?
> 
> > From: McGahon, Dermot [mailto:Dermot.McGahon at avocent.com]
> > <snip c++ code for LOCALLY unique identifier>
> > Is that what you mean or something else?
> > Regards,
> > Dermot.
> 
> Not really - I want a GLOBALLY unique identifier - ie. an ID that I know no other machine in the world will ever have - windows uses them extensively - producing them using the unique id of your NIC and the timestamp - I need a linux equivalent.

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.

Tim


-- 
Tim O'Donovan, Volume Systems Products Group 
Sun Microsystems Ireland, Boole House, 
East Point Business Park, Dublin 3, Ireland       
Tel : (+353) 1-819-9277   E-Mail:tim.odonovan at sun.com




More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell