• Advertisement

Archived

This topic is now archived and is closed to further replies.

generating unique ID's

This topic is 5065 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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)?

Share this post


Link to post
Share on other sites
Advertisement
heh what are you trying to do? assign a unique ID for every atom in the universe?

Share this post


Link to post
Share on other sites
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]

Share this post


Link to post
Share on other sites

  • Advertisement