aboutsummaryrefslogtreecommitdiffstats
path: root/lib/percept/test
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2015-12-10 13:18:20 +0100
committerBjörn Gustavsson <[email protected]>2015-12-14 15:44:42 +0100
commit983642a38b3627425f77fc6f8b8ccd121fd41f52 (patch)
tree2f36bcab0098fb44d9fffcd117b17f7fb9d16fd7 /lib/percept/test
parent5850300f41de8047b9a9da1e4f00aaee3dcd662c (diff)
downloadotp-983642a38b3627425f77fc6f8b8ccd121fd41f52.tar.gz
otp-983642a38b3627425f77fc6f8b8ccd121fd41f52.tar.bz2
otp-983642a38b3627425f77fc6f8b8ccd121fd41f52.zip
percept tests: Replace 'random' with 'rand'
Diffstat (limited to 'lib/percept/test')
-rw-r--r--lib/percept/test/egd_SUITE.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/percept/test/egd_SUITE.erl b/lib/percept/test/egd_SUITE.erl
index 41e8999e17..5a0a9af14d 100644
--- a/lib/percept/test/egd_SUITE.erl
+++ b/lib/percept/test/egd_SUITE.erl
@@ -40,7 +40,7 @@
-define(default_timeout, ?t:minutes(1)).
init_per_suite(Config) when is_list(Config) ->
- random:seed(now()),
+ rand:seed(exsplus),
Config.
end_per_suite(Config) when is_list(Config) ->
@@ -348,4 +348,4 @@ get_points(0, Out) ->
get_points(N, Out) ->
get_points(N - 1, [get_point() | Out]).
-random(N) -> trunc(random:uniform(trunc(N + 1)) - 1).
+random(N) -> trunc(rand:uniform(trunc(N + 1)) - 1).