aboutsummaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2013-10-29 14:32:43 +0100
committerGuido Günther <agx@sigxcpu.org>2013-10-30 16:37:59 +0100
commit6af72ef686ecc1c29c18bd0cbfbdd91e4ade9b26 (patch)
treec210a173d70fc6f1bdff0e4e1e878b1e58b4967d /README
Initial commitHEADmaster
Diffstat (limited to 'README')
-rw-r--r--README24
1 files changed, 24 insertions, 0 deletions
diff --git a/README b/README
new file mode 100644
index 0000000..1dbe3f6
--- /dev/null
+++ b/README
@@ -0,0 +1,24 @@
+Some function to generate v4 uuids
+==================================
+
+Generate a random uuid:
+
+ 1> UUID = guid:v4().
+ <<254,194,254,188,1,12,79,173,84,118,109,153,143,115,228,127>>
+
+Convert to text representation:
+
+ 2> guid:unparse(UUID).
+ "0ee31c01-26cc-43f1-a0f9-b52c6de7fcf7"
+
+Check it's version:
+
+ 3> guid:version(UUID).
+ 4
+
+Generate text representation drectly:
+
+ 4> guid:v4string().
+ "68718f41-06ff-49a8-8283-00582b2d5269"
+
+