[WARNING!]SqueakMap problems
Cees de Groot
cg at cdegroot.com
Tue Nov 19 19:36:45 UTC 2002
<goran.hultgren at bluefish.se> said:
>You know - UUIDs is typically a thing you want to be able to trust...
>It's sortof the whole point with them...
>
Well, IMNSHO the UUID stuff that's currently in the image is
broken. UUID's shouldn't be big random numbers, they should be *provable*
universable unique. At the moment, the only *provable* universable
unique scheme that is standardized is to have the machine's IP address,
the process id, the current time and a sequence number in it.
Random UUID's are just a cheap cop-out for when you cannot (or are too lazy to
find out or too shy to ask the user) get the IP address and/or the process ID.
They should work, because the chance of re-generating the same UUID twice is
small, but as you have experienced there is no guarantee.
I think that UUID generation (more and more important in a distributed world)
should be completed with IP based UUID's (where, that's the drawback, some
human being needs to seed the thing with the IP address of the box).
--
Cees de Groot http://www.cdegroot.com <cg at cdegroot.com>
GnuPG 1024D/E0989E8B 0016 F679 F38D 5946 4ECD 1986 F303 937F E098 9E8B
Cogito ergo evigilo
More information about the Squeak-dev
mailing list
|