diff options
author | Björn Gustavsson <[email protected]> | 2015-12-09 15:38:35 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2015-12-11 14:37:46 +0100 |
commit | fcc7aae270464f7328c5ff494d392217267f71cb (patch) | |
tree | 850dfb6da18f717376b3f56ff899584403d8b0a6 /lib/compiler/test/misc_SUITE.erl | |
parent | 71ddd8c1aba0478fe5aa07bdc8f9e6a86515bb11 (diff) | |
download | otp-fcc7aae270464f7328c5ff494d392217267f71cb.tar.gz otp-fcc7aae270464f7328c5ff494d392217267f71cb.tar.bz2 otp-fcc7aae270464f7328c5ff494d392217267f71cb.zip |
compiler tests: Replace 'random' with 'rand'
Diffstat (limited to 'lib/compiler/test/misc_SUITE.erl')
-rw-r--r-- | lib/compiler/test/misc_SUITE.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/compiler/test/misc_SUITE.erl b/lib/compiler/test/misc_SUITE.erl index c7c20fdbf2..a8b4ed0a24 100644 --- a/lib/compiler/test/misc_SUITE.erl +++ b/lib/compiler/test/misc_SUITE.erl @@ -389,9 +389,9 @@ integer_encoding_1(Config) -> do_integer_encoding(0, _, _, _) -> ok; do_integer_encoding(N, I0, Src, Data) -> - I1 = (I0 bsl 5) bor (random:uniform(32) - 1), + I1 = (I0 bsl 5) bor (rand:uniform(32) - 1), do_integer_encoding(I1, Src, Data), - I2 = -(I1 bxor (random:uniform(32) - 1)), + I2 = -(I1 bxor (rand:uniform(32) - 1)), do_integer_encoding(I2, Src, Data), do_integer_encoding(N-1, I1, Src, Data). |