[WARNING!]SqueakMap problems
Cees de Groot
cg at cdegroot.com
Tue Nov 19 11:02:02 UTC 2002
<goran.hultgren at bluefish.se> said:
>So... Ian? What have you done with UUIDs on the Linux platform?!
>
Nothing? (which is the problem, I think).
The non-primitive version in UUIDgenerator is probably broken. It's the risk
with random UUID's, that if your random generator repeats, UUID's repeat.
Short-term fix: if you're on Linux, open /dev/urandom, read 16 bytes, plug
that into the result of 'UUID new'. That will give you good quality random
UUID's until someone comes up with a plugin for Linux (at least as far as I
can see, there's no plugin for Linux).
(alternative: feed the output from 'uuidgen -r' to the fromString: constructor
of UUID. However, that quite likely does the same as what I described above).
If nobody volunteered for fixing this, I'll take a peek tonight.
--
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
|