aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler/src
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2016-04-25 11:44:07 +0200
committerIngela Anderton Andin <[email protected]>2016-04-25 11:44:07 +0200
commit5f67ca5b3d0c13dfbe936fcfa08621eef00d53cf (patch)
tree40ed1c7ace8863dcd3662d2390b1e9195fa848cd /lib/compiler/src
parent79f3e0ef07eff9d22fb1735d77813142da493bfc (diff)
parent09bd54f2d28cb2981028f55dc93279a98021e8d1 (diff)
downloadotp-5f67ca5b3d0c13dfbe936fcfa08621eef00d53cf.tar.gz
otp-5f67ca5b3d0c13dfbe936fcfa08621eef00d53cf.tar.bz2
otp-5f67ca5b3d0c13dfbe936fcfa08621eef00d53cf.zip
Merge branch 'ingela/otp/deprecated-rand_bytes/OTP-13214'
* ingela/otp/deprecated-rand_bytes/OTP-13214: stdlib: Remove use of crypto:rand_bytes/1 compiler: Remove use of crypto:rand_bytes/1 ssh: Remove use of crypto:rand_bytes/1 public_key: Remove use of crypto:rand_bytes/1 ssl: Remove use of crypto:rand_bytes/1 crypto: Deprecate rand_bytes/1
Diffstat (limited to 'lib/compiler/src')
-rw-r--r--lib/compiler/src/compile.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/compiler/src/compile.erl b/lib/compiler/src/compile.erl
index daf6521236..149086152a 100644
--- a/lib/compiler/src/compile.erl
+++ b/lib/compiler/src/compile.erl
@@ -1317,7 +1317,7 @@ generate_key(String) when is_list(String) ->
encrypt({des3_cbc=Type,Key,IVec,BlockSize}, Bin0) ->
Bin1 = case byte_size(Bin0) rem BlockSize of
0 -> Bin0;
- N -> list_to_binary([Bin0,crypto:rand_bytes(BlockSize-N)])
+ N -> list_to_binary([Bin0,crypto:strong_rand_bytes(BlockSize-N)])
end,
Bin = crypto:block_encrypt(Type, Key, IVec, Bin1),
TypeString = atom_to_list(Type),