aboutsummaryrefslogtreecommitdiffstats
path: root/lib/crypto/src
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/crypto/src
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/crypto/src')
-rw-r--r--lib/crypto/src/crypto.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/crypto/src/crypto.erl b/lib/crypto/src/crypto.erl
index 631af62615..ce8add6559 100644
--- a/lib/crypto/src/crypto.erl
+++ b/lib/crypto/src/crypto.erl
@@ -40,6 +40,8 @@
-export([ec_curve/1, ec_curves/0]).
-export([rand_seed/1]).
+-deprecated({rand_uniform, 2, next_major_release}).
+
%% This should correspond to the similar macro in crypto.c
-define(MAX_BYTES_TO_NIF, 20000). %% Current value is: erlang:system_info(context_reductions) * 10