Erlang-uuid is a project mainly written in ERLANG and C, based on the GPL-3.0 license.
UUID generator for Erlang
UUID generator for Erlang
Copyright 2010 Zoltan Klinger
The UUID generator is implemented as a gen_server making calls to a linked in driver.
The linked in drivier is using the libuuid library.
Ubuntu: sudo apt-get install uuid-dev
Cygwin: install the e2fsprogs package
Go to the root level of the uuid project and build the linked in driver and compile the Erlang files: $ make
$ erl -pz ./ebin
1> uuid:start_link("priv/lib", "uuid_gen_drv").
{ok,<0.34.0>}
2> uuid:create().
{ok,"ae42a570-08dd-4e10-8ec5-2f1485efe8bd"}
3> uuid:create_t().
{ok,"b80668e2-51f5-11df-aab5-000e3526dd6e"}
4> uuid:stop().
stopped