I'm wondering if there is somewhere in Turbine an implementation of UUID's
(Universally Unique Identifiers)?
I really need to generate such ID's, and if it does not exist, I would like
to write a generator and contribute it. One showstopper, I've not seen a
way to get access to the MAC address of an ethernet card from Java.
java.net seems to know nothing about the layers beneath IP.
the layout of a UUID is like this (node ID is the MAC adress):
|<------------------------- 32 bits -------------------------->|
+--------------------------------------------------------------+
| low 32 bits of time | 0-3
.time_low
+-------------------------------+-------------------------------
| mid 16 bits of time | 4-5 .time_mid
+-------+-----------------------+
| vers. | hi 12 bits of time | 6-7 .time_hi_and_version
+-------+-------+---------------+
|Res| clkSeqHi | 8
.clock_seq_hi_and_reserved
+---------------+
| clkSeqLow | 9 .clock_seq_low
+---------------+----------...-----+
| node ID | 8-16 .node
+--------------------------...-----+
Magnus Thor Torfason
[EMAIL PROTECTED]
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]