summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Vatamaniuc <vatamane@apache.org>2017-10-02 14:16:43 -0400
committerNick Vatamaniuc <nickva@users.noreply.github.com>2017-10-02 17:41:39 -0400
commit6bff5fb30726066e099f8214b9a220750b009ba0 (patch)
treec6f215d33701dabec178346339009f979ddd4fd8
parent59effcf339483d26a08bd08fd5d3a1efd5be3f2a (diff)
downloadcouchdb-6bff5fb30726066e099f8214b9a220750b009ba0.tar.gz
Replace deprecated crypto:rand_bytes call
Replaced with crypto:strong_rand_bytes
-rw-r--r--src/ddoc_cache/test/ddoc_cache_refresh_test.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ddoc_cache/test/ddoc_cache_refresh_test.erl b/src/ddoc_cache/test/ddoc_cache_refresh_test.erl
index f1459870d..261c158c7 100644
--- a/src/ddoc_cache/test/ddoc_cache_refresh_test.erl
+++ b/src/ddoc_cache/test/ddoc_cache_refresh_test.erl
@@ -158,7 +158,7 @@ check_upgrade_clause({DbName, _}) ->
rand_string() ->
- Bin = crypto:rand_bytes(8),
+ Bin = crypto:strong_rand_bytes(8),
to_hex(Bin, []).
@@ -171,4 +171,4 @@ to_hex(<<C1:4, C2:4, Rest/binary>>, Acc) ->
hexdig(C) when C >= 0, C =< 9 ->
C + $0;
hexdig(C) when C >= 10, C =< 15 ->
- C + $A - 10. \ No newline at end of file
+ C + $A - 10.