couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vatam...@apache.org
Subject [couchdb] 01/01: Replace deprecated crypto:rand_bytes call
Date Mon, 02 Oct 2017 18:17:43 GMT
This is an automated email from the ASF dual-hosted git repository.

vatamane pushed a commit to branch deprecated-rand-bytes
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit 38ee1ec93f000f9f2e8af8afe13d90c6d8c312e4
Author: Nick Vatamaniuc <vatamane@apache.org>
AuthorDate: Mon Oct 2 14:16:43 2017 -0400

    Replace deprecated crypto:rand_bytes call
    
    Replaced with crypto:strong_rand_bytes
---
 src/ddoc_cache/test/ddoc_cache_refresh_test.erl | 4 ++--
 1 file 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 f145987..261c158 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.

-- 
To stop receiving notification emails like this one, please contact
"commits@couchdb.apache.org" <commits@couchdb.apache.org>.

Mime
View raw message