aboutsummaryrefslogtreecommitdiffstats
path: root/src/rlx_prv_overlay.erl
diff options
context:
space:
mode:
authorTristan Sloughter <[email protected]>2015-04-23 18:43:49 -0500
committerTristan Sloughter <[email protected]>2015-04-23 18:43:49 -0500
commita36609536aaf7d98b5bd5d3364cab739dc6689b5 (patch)
tree027dfe513c3a5dd724ec5b07b0180dccd15a758e /src/rlx_prv_overlay.erl
parent3f2462807fe4afb82bc52dd3ff8ff9244aad3bd3 (diff)
downloadrelx-a36609536aaf7d98b5bd5d3364cab739dc6689b5.tar.gz
relx-a36609536aaf7d98b5bd5d3364cab739dc6689b5.tar.bz2
relx-a36609536aaf7d98b5bd5d3364cab739dc6689b5.zip
update for 18.0
Diffstat (limited to 'src/rlx_prv_overlay.erl')
-rw-r--r--src/rlx_prv_overlay.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rlx_prv_overlay.erl b/src/rlx_prv_overlay.erl
index 47b0b3c..d9c409c 100644
--- a/src/rlx_prv_overlay.erl
+++ b/src/rlx_prv_overlay.erl
@@ -349,7 +349,7 @@ do_individual_overlay(State, OverlayVars, {copy, From, To}) ->
end);
do_individual_overlay(State, OverlayVars, {link, From, To}) ->
case rlx_state:dev_mode(State) of
- false ->
+ false ->
do_individual_overlay(State, OverlayVars, {copy, From, To});
true ->
FromTemplateName = make_template_name("rlx_copy_from_template", From),
@@ -530,7 +530,7 @@ file_render_do(OverlayVars, Data, TemplateName, NextAction) ->
-spec make_template_name(string(), term()) -> module().
make_template_name(Base, Value) ->
%% Seed so we get different values each time
- random:seed(erlang:now()),
+ random:seed(os:timestamp()),
Hash = erlang:phash2(Value),
Ran = random:uniform(10000000),
erlang:list_to_atom(Base ++ "_" ++