generating unique ID's

Started by
3 comments, last by vaneger 20 years ago
how could i generate 18,446,744,073,709,551,616 unique ID''s? is it even possible to store such data (perhaps only a certain amount at a time)?
Advertisement
heh what are you trying to do? assign a unique ID for every atom in the universe?
1, 2, 3, 4...18,446,744,073,709,551,616

That''s 18,446,744,073,709,551,616 unieque id''s
GUIDs should be be useful to you.
--God has paid us the intolerable compliment of loving us, in the deepest, most tragic, most inexorable sense.- C.S. Lewis
1.84x10^19 can be represented with 64 bits. You had to have known that.

edit: So, to continue, 2^64 values * 2^6 bits = 1180591620717411303424 bits, which is 140737488355328 Mo. So, practically, speaking, you probably can't store the values along with any meaningful data in a reasonable number of commonly-available modern mass storage devices.

Later,
ZE.

[edited by - zealouselixir on April 10, 2004 8:50:47 PM]

[twitter]warrenm[/twitter]

This topic is closed to new replies.

Advertisement