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

[REBOL] Re: How to generate a UUID?

From: greggirwin:mindspring at: 18-Jan-2002 11:10

Hi Sunanda, << I think we have slightly different models in mind. >> I think you're right. :) << You, I think, are looking for a "prefix" unique to a machine. I was chipping in an approach to a slightly different problem: to get a unique "prefix" for an "application node" (to coin a phrase). That's a bit of an application running in one machine; but it might migrate to another; and that machine may be running more than one application, each of which needs to generate its own UUIDs. >> Right. I've used an approach somewhere between the two we're discussing, to generate OIDs (Object IDs) for an object-centric DB design. To do that, I used the GUID created by CoCreateGUID (under Windows) and re-defined one segment to use as your PREFIX segment. One use I've been thinking of, and why I think generic global uniqueness is important (beyond application specific uniqueness requirements), is that of messages and agents which may "travel". I'll be doing some more research on this, and maybe even hack up a little test. Maybe, together, we can come up with something that will work for both of us. --Gregg