aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/test/string_SUITE.erl
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2015-03-26 15:32:26 +0100
committerBjörn Gustavsson <[email protected]>2015-04-10 12:33:24 +0200
commite13c6510763f24dec76b1ce66b86ebbf7a84816d (patch)
treed815dd782eb4827cdc98938b660a7498d166042a /lib/stdlib/test/string_SUITE.erl
parent0aaf8f67be3526656551d0011e8d8d6cf84e35fe (diff)
downloadotp-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/string_SUITE.erl')
-rw-r--r--lib/stdlib/test/string_SUITE.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/stdlib/test/string_SUITE.erl b/lib/stdlib/test/string_SUITE.erl
index a55c710d50..e9ea2e3522 100644
--- a/lib/stdlib/test/string_SUITE.erl
+++ b/lib/stdlib/test/string_SUITE.erl
@@ -120,7 +120,7 @@ chr_rchr(suite) ->
chr_rchr(doc) ->
[];
chr_rchr(Config) when is_list(Config) ->
- ?line {_,_,X} = now(),
+ {_,_,X} = erlang:timestamp(),
?line 0 = string:chr("", (X rem (255-32)) + 32),
?line 0 = string:rchr("", (X rem (255-32)) + 32),
?line 1 = string:chr("x", $x),
@@ -144,7 +144,7 @@ str_rstr(suite) ->
str_rstr(doc) ->
[];
str_rstr(Config) when is_list(Config) ->
- ?line {_,_,X} = now(),
+ {_,_,X} = erlang:timestamp(),
?line 0 = string:str("", [(X rem (255-32)) + 32]),
?line 0 = string:rstr("", [(X rem (255-32)) + 32]),
?line 1 = string:str("x", "x"),