diff --git a/rebar.config b/rebar.config index 2044fe5..48417a6 100644 --- a/rebar.config +++ b/rebar.config @@ -13,7 +13,7 @@ warn_exported_vars, warn_missing_spec, warn_untyped_record, debug_info, - {platform_define, "R18", r_18}]}. + {platform_define, "^18", r_18}]}. {deps_dir, "deps"}. {deps, [ {lager, "2.*", {git, "git://github.com/basho/lager.git", "2.0.3"}}, diff --git a/src/wpool_pool.erl b/src/wpool_pool.erl index ece4c9a..3d3ec39 100644 --- a/src/wpool_pool.erl +++ b/src/wpool_pool.erl @@ -308,7 +308,7 @@ build_wpool(Name) -> end. -ifdef(r_18). - seed_random() -> random:seed(timestamp()). + seed_random() -> random:seed(erlang:timestamp()). -else. seed_random() -> random:seed(now()). --endif. \ No newline at end of file +-endif.