diff options
author | Tristan Sloughter <[email protected]> | 2015-06-25 20:55:09 -0500 |
---|---|---|
committer | Tristan Sloughter <[email protected]> | 2015-06-25 21:04:05 -0500 |
commit | 1aa945c7859d1da91bc32da4675e8093278482d4 (patch) | |
tree | 5e2df96d35f33bc9784a0ca56801c8dc1d30d1a3 | |
parent | f0bff23aa82aca74b50399b31c638779cf6d144a (diff) | |
download | relx-1aa945c7859d1da91bc32da4675e8093278482d4.tar.gz relx-1aa945c7859d1da91bc32da4675e8093278482d4.tar.bz2 relx-1aa945c7859d1da91bc32da4675e8093278482d4.zip |
update for 18 time function changes
-rw-r--r-- | test/rlx_discover_SUITE.erl | 4 | ||||
-rw-r--r-- | test/rlx_test_utils.erl | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/test/rlx_discover_SUITE.erl b/test/rlx_discover_SUITE.erl index 4a3b817..2a8933c 100644 --- a/test/rlx_discover_SUITE.erl +++ b/test/rlx_discover_SUITE.erl @@ -223,11 +223,11 @@ get_bad_app_metadata(Name, Vsn) -> create_random_name(Name) -> - random:seed(erlang:now()), + random:seed(os:timestamp()), Name ++ erlang:integer_to_list(random:uniform(1000000)). create_random_vsn() -> - random:seed(erlang:now()), + random:seed(os:timestamp()), lists:flatten([erlang:integer_to_list(random:uniform(100)), ".", erlang:integer_to_list(random:uniform(100)), ".", erlang:integer_to_list(random:uniform(100))]). diff --git a/test/rlx_test_utils.erl b/test/rlx_test_utils.erl index 4e0fc0d..9db2835 100644 --- a/test/rlx_test_utils.erl +++ b/test/rlx_test_utils.erl @@ -45,11 +45,11 @@ get_app_metadata(Name, Vsn, Deps, LibDeps) -> {applications, Deps}]}. create_random_name(Name) -> - random:seed(erlang:now()), + random:seed(os:timestamp()), Name ++ erlang:integer_to_list(random:uniform(1000000)). create_random_vsn() -> - random:seed(erlang:now()), + random:seed(os:timestamp()), lists:flatten([erlang:integer_to_list(random:uniform(100)), ".", erlang:integer_to_list(random:uniform(100)), ".", erlang:integer_to_list(random:uniform(100))]). |