summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Trainer <klaus_trainer@apache.org>2014-03-07 00:17:08 +0100
committerKlaus Trainer <klaus_trainer@apache.org>2014-05-11 20:15:55 +0200
commit85df08859e731797df1f60d41ea3a322b735926e (patch)
tree587455e6cf4d5027c06d162113ecafd1f051bd4d
parent9bdbea82a940a5f5fa2f51aea865166d7fddf23c (diff)
downloadcouchdb-85df08859e731797df1f60d41ea3a322b735926e.tar.gz
Use `os:timestamp/0 instead of `erlang:now/0`
We don't need the guarantees of `erlang:now/0` in `make_cookie_time/0`, so `os:timestamp/0` is just fine.
-rw-r--r--src/couchdb/couch_httpd_auth.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/couchdb/couch_httpd_auth.erl b/src/couchdb/couch_httpd_auth.erl
index 6888f0691..faf8789fe 100644
--- a/src/couchdb/couch_httpd_auth.erl
+++ b/src/couchdb/couch_httpd_auth.erl
@@ -395,7 +395,7 @@ auth_name(String) when is_list(String) ->
?l2b(Name).
make_cookie_time() ->
- {NowMS, NowS, _} = erlang:now(),
+ {NowMS, NowS, _} = os:timestamp(),
NowMS * 1000000 + NowS.
cookie_scheme(#httpd{mochi_req=MochiReq}) ->