diff options
author | Fred Hebert <mononcqc@ferd.ca> | 2015-04-23 21:05:45 -0400 |
---|---|---|
committer | Fred Hebert <mononcqc@ferd.ca> | 2015-04-23 21:05:45 -0400 |
commit | 578a27f506a00615f41803c277cc3069a7f3022a (patch) | |
tree | 4ed82ed4d9eaa787c55334b59bed650608236b3b /src | |
parent | 302670da707c46dc73b9866ac00000ffd39a212c (diff) | |
parent | 26161bc1acc1085ac8c29fe759fe6c40b400bc66 (diff) |
Merge pull request #365 from tsloughter/otp18
Support 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 ++ "_" ++ |