diff options
author | Ingela Anderton Andin <[email protected]> | 2017-03-20 15:41:06 +0100 |
---|---|---|
committer | Ingela Anderton Andin <[email protected]> | 2017-03-20 15:41:06 +0100 |
commit | 4e44a1414bcdae81305f98d7789fdad00a0bc94d (patch) | |
tree | 984a9dde5e547f78dd03ce37a587847691d2e2ed /lib/stdlib/src/otp_internal.erl | |
parent | 6a0ca45bb465150ba47d057ecd6c75681b790aab (diff) | |
download | otp-4e44a1414bcdae81305f98d7789fdad00a0bc94d.tar.gz otp-4e44a1414bcdae81305f98d7789fdad00a0bc94d.tar.bz2 otp-4e44a1414bcdae81305f98d7789fdad00a0bc94d.zip |
crypto: Deprecate crypto:rand_uniform/2 as it is not cryptographically strong
rand module should be used if not cryptographically strong is required.
If cryptographically strong is required, new cryptographically strong
functions should be added to crypto.
Diffstat (limited to 'lib/stdlib/src/otp_internal.erl')
-rw-r--r-- | lib/stdlib/src/otp_internal.erl | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/stdlib/src/otp_internal.erl b/lib/stdlib/src/otp_internal.erl index fda7a2cd8a..e141da52d9 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) -> |