[REBOL] Re: How to generate a UUID?
From: sunandadh:aol at: 18-Jan-2002 8:54
Hi Gregg,
> What you call PREFIX, I would probably call "Creation Location". To me,
this
> equates to the unique machine identifier as used in the OSF DCE spec. There
> could be varying implementations for this, one of which *could* be an
> external server. If RT could provide a native 'machine-uid function, that
> would be ideal. Otherwise we have to synthesize it somehow, or make it a
> configuration option.
I think we have slightly different models in mind.
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.
But yes, a machine-uid function (that gets the CPU model and serial for
machines that support that; or the ethernet address for machines with a card;
or _something_ unique) would be a big step in the right direction for both of
us.
Sunanda.