diff options
author | Guido Günther <agx@sigxcpu.org> | 2013-10-29 14:32:43 +0100 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2013-10-30 16:37:59 +0100 |
commit | 6af72ef686ecc1c29c18bd0cbfbdd91e4ade9b26 (patch) | |
tree | c210a173d70fc6f1bdff0e4e1e878b1e58b4967d /README |
Diffstat (limited to 'README')
-rw-r--r-- | README | 24 |
1 files changed, 24 insertions, 0 deletions
@@ -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" + + |