[WARNING!]SqueakMap problems
Ned Konz
ned at bike-nomad.com
Tue Nov 19 19:58:06 UTC 2002
On Tuesday 19 November 2002 11:48 am, I wrote:
> We should probably have a plugin that does this properly.
There is a UUIDPlugin that's not complete (under Linux, anyway).
We could flush it out on the various platforms with platform-specific code.
The platform-specific code could get the MAC address(es)
and use it/them as part of a standard UUID generation scheme.
Isn't there a standard for this anyway?
On Linux we have libuuid, which is part of the e2fsprogs package:
#include <uuid/uuid.h>
void uuid_generate(uuid_t out);
void uuid_generate_random(uuid_t out);
void uuid_generate_time(uuid_t out);
DESCRIPTION
The uuid_generate function creates a new universally unique identifier
(UUID). The uuid will be generated based on high-quality randomness from
/dev/urandom, if available. If it is not available, then uuid_generate
will use an alternative algorithm which uses the current time, the local
ethernet MAC address (if available), and random data generated using a
pseudo-random generator.
--
Ned Konz
http://bike-nomad.com
GPG key ID: BEEA7EFE
More information about the Squeak-dev
mailing list
|