distributed computing - Need a 9 char length unique ID -


my application uses 9 digit number (it can alphanumeric also). can start number , increments @ beginning. application not single instance application, if run exe instance, should increment latest value , previous instance should again increment latest value when needs value. mean @ time, value should latest incremented value among instances open.

this half of problem. other side is, exes can run on machine on network , each instance should keep on incrementing (just time never goes back) 2 years. restrictions can't use files store , retrieve latest value in common place.

how can that?

a 9 char/digit unique number works sure. whole idea assign number (string of 9 char length) each "confidential file" , (encrypt , whatever, not job)

i tried with:

  1. guid unique in total 128 bits not last or first 9 chars
  2. tick count more 9
  3. mac address unique if 12 chars
  4. isbn (book numbering system)

and on ...

i think best approach might have unique number server each instance of application queries on network unique numbers.


Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c++ - Using OpenSSL in a multi-threaded application -

All overlapping substrings matching a java regex -