Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: Creating unique ID's?

From: joel:neely:fedex at: 16-Jul-2002 14:29

Hi, Ingo, Ingo Hohmann wrote:
> Hi Rebols, > > I need to create ID's which are unique over even when they are created > on different machines, or several poeple on the same machine, etc. Does > anyone have a better idea than > > unique-id: join join system/user/email system/network/host now/precise >
If you can stand a *very* small (but non-zero) probability of a collision, you can avoid publishing user and/or host information by using checksum/secure rejoin [ system/user/email system/network/host now/precise ] which, for example, on one of my boxen gives #{0CFD7B12DBFAD911FD68BD4AA6862AA5AD3F4D17} and I'll offer a reward of a virtual cookie to anyone who can determine who/where/when from the above. In theory, there's a 1 : 2 ** 80 chance (1 in 1.2E24) of a collision between different ids. -jn-