D
DaTurk
Hi,
I was just curious how you would go about creating a unique identifier
with 3 ints.
I was just curious how you would go about creating a unique identifier
with 3 ints.
DaTurk said:Hi,
I was just curious how you would go about creating a unique identifier
with 3 ints.
Nicholas Paldino said:DaTurk,
I would treat the three integers as components of a larger, 96 bit
integer. Because there isn't an algorithm for generating higly-unique
96-bit integers (unlike GUIDs, which are 128 bits), I would suggest
starting at 0, and then incrementing by 1 every time you need a new value
(across the 96 bits, which you will have to code yourself).
--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)
DaTurk said:Hi,
I was just curious how you would go about creating a unique identifier
with 3 ints.
Nicholas Paldino said:DaTurk,
I would treat the three integers as components of a larger, 96 bit
integer. Because there isn't an algorithm for generating higly-unique
96-bit integers (unlike GUIDs, which are 128 bits), I would suggest
starting at 0, and then incrementing by 1 every time you need a new value
(across the 96 bits, which you will have to code yourself).
Hi,
I was just curious how you would go about creating a unique identifier
with 3 ints.
The reason this seems vague is that you don't state whether you need to get
back to the three ints from the unique identifier. If this is the case,
there are several options. If it is not a requirement, then just return an
incrimented static counter.
- Show quoted text -
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.