I am looking for a way to generate a Unique ID for a system such that, every time this ID is generated it should be same as long as on the system. (I am not sure if that's even possible) I am using Java to achieve this and should run on Windows and Unix (Linux) both
After spending sometime searching through various article if found some good solutions but each had its own limitations. Following 2 options were very close though.
- Using UUID package in Java: This gives out unique ids where in possible of collision is infinitesimal but I don't get same unique ID for a system.
- Using mac address of the system: I doubt that this would work well with Virtual Hosts.
Any suggestions folks?