erlUUID 0.3 review
Download
|
|
erlUUID project is a C-port driver to access the UUID library.
It is *NOT AT ALL* meant to be a replacement to Erlang's references !
Tested with:
- Erlang/OTP R10B-9
- OSSP UUID 1.2.0
Example usage:
$ sh test.sh
UUID: {version,1057280}
------------------------------------------------------------------------------
V1: 6a66a564-7cb8-11da-9e34-00080dc2f0d6
UUID: 6a66a564-7cb8-11da-9e34-00080dc2f0d6
variant: DCE 1.1, ISO/IEC 11578:1996
version: 1 (time and node based)
content: time: 2006-01-04 00:24:06.178954.0 UTC
clock: 7732 (usually random)
node: 00:08:0d:c2:f0:d6 (global unicast)
------------------------------------------------------------------------------
is_nil ("6a66a564-7cb8-11da-9e34-00080dc2f0d6") -> false
------------------------------------------------------------------------------
V1/MC: 6a6ddbf4-7cb8-11da-9a82-1fe034dcdedb
UUID: 6a6ddbf4-7cb8-11da-9a82-1fe034dcdedb
variant: DCE 1.1, ISO/IEC 11578:1996
version: 1 (time and node based)
content: time: 2006-01-04 00:24:06.226226.0 UTC
clock: 6786 (usually random)
node: 1f:e0:34:dc:de:db (local multicast)
------------------------------------------------------------------------------
is_nil ("00000000-0000-0000-0000-000000000000") -> true
------------------------------------------------------------------------------
V3: ns= ns:URL
V3: data= http://www.ossp.org/
V3/URL: 02d9e6d5-9467-382e-8f9b-9300a64ac3cd
UUID: 02d9e6d5-9467-382e-8f9b-9300a64ac3cd
variant: DCE 1.1, ISO/IEC 11578:1996
version: 3 (name based, MD5)
content: 02:D9:E6:D5:94:67:08:2E:0F:9B:93:00:A6:4A:C3:CD
(not decipherable: MD5 message digest only)
------------------------------------------------------------------------------
V4: de429615-aff1-42aa-965d-c1c55855d9aa
UUID: de429615-aff1-42aa-965d-c1c55855d9aa
variant: DCE 1.1, ISO/IEC 11578:1996
version: 4 (random data based)
content: DE:42:96:15:AF:F1:02:AA:16:5D:C1:C5:58:55:D9:AA
(no semantics: random data only)
------------------------------------------------------------------------------
V5: ns= ns:URL
V5: data= http://www.biniou.info/
V5/URL: 25a2cd5b-bc90-5010-9fd9-025671c04ba3
UUID: 25a2cd5b-bc90-5010-9fd9-025671c04ba3
variant: DCE 1.1, ISO/IEC 11578:1996
version: 5 (name based, SHA-1)
content: 25:A2:CD:5B:BC:90:00:10:1F:D9:02:56:71:C0:4B:A3
(not decipherable: truncated SHA-1 message digest only)
------------------------------------------------------------------------------
ok
What's New in This Release:
str2uuid() support for the OID namespace was added.
erlUUID 0.3 search tags