Fix strong_rand to rand_bytes
This commit is contained in:
parent
bbe763514b
commit
b319386210
1 changed files with 1 additions and 1 deletions
|
@ -42,6 +42,6 @@ seed() ->
|
||||||
random:seed(erlang:phash2(self()), element(2, SW), element(3, SW)).
|
random:seed(erlang:phash2(self()), element(2, SW), element(3, SW)).
|
||||||
|
|
||||||
rand_bytes(Size) ->
|
rand_bytes(Size) ->
|
||||||
crypto:strong_rand(Size).
|
crypto:rand_bytes(Size).
|
||||||
|
|
||||||
-endif.
|
-endif.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue