Skip to content

Commit

Permalink
Merge pull request #28 from joaohf/master
Browse files Browse the repository at this point in the history
Fix platform_define string to 18 and calling timestamp().
  • Loading branch information
HernanRivasAcosta committed Aug 3, 2015
2 parents d72da62 + 32bbc02 commit a15f173
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rebar.config
Original file line number Diff line number Diff line change
Expand Up @@ -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"}},
Expand Down
4 changes: 2 additions & 2 deletions src/wpool_pool.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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.
-endif.

0 comments on commit a15f173

Please sign in to comment.