aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/src/otp_internal.erl
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2017-03-21 14:59:33 +0100
committerIngela Anderton Andin <[email protected]>2017-03-21 14:59:33 +0100
commit11f07679d82bcb9d52b63b9b184fcca9d34123f8 (patch)
tree3111f8d6e91ce831a83105c92ed820349624b194 /lib/stdlib/src/otp_internal.erl
parent41962714d0da8738ae536a0325936c12a5a8bd45 (diff)
parent4e44a1414bcdae81305f98d7789fdad00a0bc94d (diff)
downloadotp-11f07679d82bcb9d52b63b9b184fcca9d34123f8.tar.gz
otp-11f07679d82bcb9d52b63b9b184fcca9d34123f8.tar.bz2
otp-11f07679d82bcb9d52b63b9b184fcca9d34123f8.zip
Merge branch 'ingela/crypto/deprecate/rand_uniform'
* ingela/crypto/deprecate/rand_uniform: crypto: Deprecate crypto:rand_uniform/2 as it is not cryptographically strong
Diffstat (limited to 'lib/stdlib/src/otp_internal.erl')
-rw-r--r--lib/stdlib/src/otp_internal.erl5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/stdlib/src/otp_internal.erl b/lib/stdlib/src/otp_internal.erl
index 4c15d24c51..a1fde11c71 100644
--- a/lib/stdlib/src/otp_internal.erl
+++ b/lib/stdlib/src/otp_internal.erl
@@ -55,6 +55,11 @@ obsolete_1(erlang, now, 0) ->
obsolete_1(calendar, local_time_to_universal_time, 1) ->
{deprecated, {calendar, local_time_to_universal_time_dst, 1}};
+%% *** CRYPTO added in OTP 20 ***
+
+obsolete_1(crypto, rand_uniform, 2) ->
+ {deprecated, {rand, uniform, 1}};
+
%% *** CRYPTO added in OTP 19 ***
obsolete_1(crypto, rand_bytes, 1) ->