Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
format code
  • Loading branch information
luuhq committed Feb 12, 2013
commit d72c0c2625a398e5288b9a859bf97b586321aff1
6 changes: 3 additions & 3 deletions uuid.erl
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@
% Generates a random binary UUID.
v4() ->
v4(random:uniform(1 bsl 48) - 1,
random:uniform(1 bsl 12) - 1,
random:uniform(1 bsl 32) - 1,
random:uniform(1 bsl 30) - 1).
random:uniform(1 bsl 12) - 1,
random:uniform(1 bsl 32) - 1,
random:uniform(1 bsl 30) - 1).
v4(R1, R2, R3, R4) ->
<<R1:48, 4:4, R2:12, 2:2, R3:32, R4: 30>>.

Expand Down