aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2016-04-22 10:24:46 +0200
committerIngela Anderton Andin <[email protected]>2016-04-25 11:42:05 +0200
commit09bd54f2d28cb2981028f55dc93279a98021e8d1 (patch)
tree40ed1c7ace8863dcd3662d2390b1e9195fa848cd /lib/stdlib
parente0cbc54261fb72668c48d89f69cab5d323c7f72f (diff)
downloadotp-09bd54f2d28cb2981028f55dc93279a98021e8d1.tar.gz
otp-09bd54f2d28cb2981028f55dc93279a98021e8d1.tar.bz2
otp-09bd54f2d28cb2981028f55dc93279a98021e8d1.zip
stdlib: Remove use of crypto:rand_bytes/1
The use case is not cryptographical but we want to compare Erlang implementation to c implementation so use crypto:strong_rand_bytes anyway.
Diffstat (limited to 'lib/stdlib')
-rw-r--r--lib/stdlib/test/rand_SUITE.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/stdlib/test/rand_SUITE.erl b/lib/stdlib/test/rand_SUITE.erl
index 3fd5ed4ccf..1bcdc3ccd0 100644
--- a/lib/stdlib/test/rand_SUITE.erl
+++ b/lib/stdlib/test/rand_SUITE.erl
@@ -377,7 +377,7 @@ crypto_seed() ->
crypto_next(<<Num:64, Bin/binary>>) ->
{Num, Bin};
crypto_next(_) ->
- crypto_next(crypto:rand_bytes((64 div 8)*100)).
+ crypto_next(crypto:strong_rand_bytes((64 div 8)*100)).
crypto_uniform({Api, Data0}) ->
{Int, Data} = crypto_next(Data0),