You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by va...@apache.org on 2017/10/02 21:41:42 UTC
[couchdb] branch master updated: Replace deprecated
crypto:rand_bytes call
This is an automated email from the ASF dual-hosted git repository.
vatamane pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/couchdb.git
The following commit(s) were added to refs/heads/master by this push:
new 6bff5fb Replace deprecated crypto:rand_bytes call
6bff5fb is described below
commit 6bff5fb30726066e099f8214b9a220750b009ba0
Author: Nick Vatamaniuc <va...@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" <co...@couchdb.apache.org>'].