Skip to content

Commit

Permalink
stanza: silence deprecation warning for crypto module (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
dch authored and scrogson committed Feb 13, 2017
1 parent 3e7e825 commit 0ecef1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/romeo/stanza.ex
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,6 @@ defmodule Romeo.Stanza do
Generates a random hex string for use as an id for a stanza.
"""
def id do
:crypto.rand_bytes(2) |> Base.encode16(case: :lower)
:crypto.strong_rand_bytes(2) |> Base.encode16(case: :lower)
end
end

0 comments on commit 0ecef1e

Please sign in to comment.