diff options
author | Björn Gustavsson <[email protected]> | 2015-03-26 15:32:26 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2015-04-10 12:33:24 +0200 |
commit | e13c6510763f24dec76b1ce66b86ebbf7a84816d (patch) | |
tree | d815dd782eb4827cdc98938b660a7498d166042a /lib/stdlib/test/tar_SUITE.erl | |
parent | 0aaf8f67be3526656551d0011e8d8d6cf84e35fe (diff) | |
download | otp-e13c6510763f24dec76b1ce66b86ebbf7a84816d.tar.gz otp-e13c6510763f24dec76b1ce66b86ebbf7a84816d.tar.bz2 otp-e13c6510763f24dec76b1ce66b86ebbf7a84816d.zip |
Eliminate use of deprecated now/0 for random number generation
Use erlang:timestamp/0 instead now/0 when seeding the random
number generator.
Diffstat (limited to 'lib/stdlib/test/tar_SUITE.erl')
-rw-r--r-- | lib/stdlib/test/tar_SUITE.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/stdlib/test/tar_SUITE.erl b/lib/stdlib/test/tar_SUITE.erl index 9b6d65011e..3b54cd0f34 100644 --- a/lib/stdlib/test/tar_SUITE.erl +++ b/lib/stdlib/test/tar_SUITE.erl @@ -89,7 +89,7 @@ borderline_test(Size, TempDir) -> ?line io:format("Testing size ~p", [Size]), %% Create a file and archive it. - ?line {_, _, X0} = erlang:now(), + X0 = erlang:monotonic_time(), ?line file:write_file(Name, random_byte_list(X0, Size)), ?line ok = erl_tar:create(Archive, [Name]), ?line ok = file:delete(Name), |