Jump to content
  • Advertisement

Archived

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

vaneger

generating unique ID's

This topic is 5155 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
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
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!