Skip to content
Michael Truog edited this page Jan 31, 2021 · 2 revisions

v1 Usage Example

% Seed
ok = quickrand:seed(),
% Create state
S0 = uuid:new(self()),
% Create 2 v1 uuids with state variables S0 and S1
{U0, S1} = uuid:get_v1(S0),
{U1, _} = uuid:get_v1(S1),
% Print the string representation of both uuids
io:format("~s and ~s~n", [uuid:uuid_to_string(U0), uuid:uuid_to_string(U1)]).
Clone this wiki locally