How can I easily generate a Unique ID in C++, compiling using gcc

Cheers
Samuel

Recommended Answers

All 3 Replies

How unique?
- unique to the program
- unique to the system you're running on
- unique to the LAN you're on
- unique to the whole planet

And how long do you need it to be unique for?

unique to the program, need it unique forever, well at least 10 years

Cheers for the reply!

Sam

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.