diff options
author | Tristan Sloughter <t@crashfast.com> | 2015-04-23 19:07:51 -0500 |
---|---|---|
committer | Tristan Sloughter <t@crashfast.com> | 2015-04-23 19:41:39 -0500 |
commit | 26161bc1acc1085ac8c29fe759fe6c40b400bc66 (patch) | |
tree | 4ed82ed4d9eaa787c55334b59bed650608236b3b /src | |
parent | bd2f8bbc5e446dbabeeb9793fd8f93790a38857c (diff) |
support for 18.0+
Diffstat (limited to 'src')
-rw-r--r-- | src/rebar_app_info.erl | 2 | ||||
-rw-r--r-- | src/rebar_state.erl | 2 | ||||
-rw-r--r-- | src/rebar_templater.erl | 2 |
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 ++ "_" ++ |