summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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 ++ "_" ++