diff options
author | Adam Kocoloski <kocolosk@apache.org> | 2010-05-04 20:46:42 +0000 |
---|---|---|
committer | Adam Kocoloski <kocolosk@apache.org> | 2010-05-04 20:46:42 +0000 |
commit | d7d047f439880735377a4b8ea2ce2ef42921fff8 (patch) | |
tree | bfe733b55bcca11f6ccd30f9cea70e8800ca7b3c /src/couchdb/couch_rep.erl | |
parent | 33b3524268195a0798993690b54cead286da28fb (diff) |
use crypto:md5 when available. thx fdmanana. Closes COUCHDB-757
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@941033 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/couchdb/couch_rep.erl')
-rw-r--r-- | src/couchdb/couch_rep.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/couchdb/couch_rep.erl b/src/couchdb/couch_rep.erl index eb62ad7c..3daf8170 100644 --- a/src/couchdb/couch_rep.erl +++ b/src/couchdb/couch_rep.erl @@ -465,7 +465,7 @@ make_replication_id({Props}, UserCtx) -> end, Extension = maybe_append_options( [<<"continuous">>, <<"create_target">>], Props), - {couch_util:to_hex(erlang:md5(term_to_binary(Base))), Extension}. + {couch_util:to_hex(couch_util:md5(term_to_binary(Base))), Extension}. maybe_add_trailing_slash(Url) -> re:replace(Url, "[^/]$", "&/", [{return, list}]). |