summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFred Hebert <mononcqc@ferd.ca>2015-04-23 21:05:45 -0400
committerFred Hebert <mononcqc@ferd.ca>2015-04-23 21:05:45 -0400
commit578a27f506a00615f41803c277cc3069a7f3022a (patch)
tree4ed82ed4d9eaa787c55334b59bed650608236b3b /src
parent302670da707c46dc73b9866ac00000ffd39a212c (diff)
parent26161bc1acc1085ac8c29fe759fe6c40b400bc66 (diff)
Merge pull request #365 from tsloughter/otp18
Support 18.0+
Diffstat (limited to 'src')
-rw-r--r--src/rebar_app_info.erl2
-rw-r--r--src/rebar_state.erl2
-rw-r--r--src/rebar_templater.erl2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/rebar_app_info.erl b/src/rebar_app_info.erl
index 9659c0b..7894e75 100644
--- a/src/rebar_app_info.erl
+++ b/src/rebar_app_info.erl
@@ -61,7 +61,7 @@
%%============================================================================
%% types
%%============================================================================
--type t() :: record(app_info_t).
+-type t() :: #app_info_t{}.
%%============================================================================
%% API
diff --git a/src/rebar_state.erl b/src/rebar_state.erl
index 3909a39..ddac9d2 100644
--- a/src/rebar_state.erl
+++ b/src/rebar_state.erl
@@ -65,7 +65,7 @@
-export_type([t/0]).
--type t() :: record(state_t).
+-type t() :: #state_t{}.
-spec new() -> t().
new() ->
diff --git a/src/rebar_templater.erl b/src/rebar_templater.erl
index 75cbb87..78d1e83 100644
--- a/src/rebar_templater.erl
+++ b/src/rebar_templater.erl
@@ -394,7 +394,7 @@ write_file(Output, Data, Force) ->
-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 ++ "_" ++