aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssl/test/erl_make_certs.erl
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2017-02-24 10:32:37 +0100
committerIngela Anderton Andin <[email protected]>2017-03-23 15:02:23 +0100
commit9f4c3f973e44ee5784d1d7eddf225ca0458f4525 (patch)
treec10da4af0fc51fa0b10f61b57b5d5dceb5d21636 /lib/ssl/test/erl_make_certs.erl
parentbce42f4c31bf552269eb787c61a979b3fb34c87e (diff)
downloadotp-9f4c3f973e44ee5784d1d7eddf225ca0458f4525.tar.gz
otp-9f4c3f973e44ee5784d1d7eddf225ca0458f4525.tar.bz2
otp-9f4c3f973e44ee5784d1d7eddf225ca0458f4525.zip
ssl, public_key: Add functionality for generating X509 cert test data
For now this functionality is located in ssl. And existing public_key function is extended. However some of the functionality may be moved to public_key in a later stage.
Diffstat (limited to 'lib/ssl/test/erl_make_certs.erl')
-rw-r--r--lib/ssl/test/erl_make_certs.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ssl/test/erl_make_certs.erl b/lib/ssl/test/erl_make_certs.erl
index a6657be995..af217efc11 100644
--- a/lib/ssl/test/erl_make_certs.erl
+++ b/lib/ssl/test/erl_make_certs.erl
@@ -179,7 +179,7 @@ make_tbs(SubjectKey, Opts) ->
subject(proplists:get_value(subject, Opts),false)
end,
- {#'OTPTBSCertificate'{serialNumber = trunc(random:uniform()*100000000)*10000 + 1,
+ {#'OTPTBSCertificate'{serialNumber = trunc(rand:uniform()*100000000)*10000 + 1,
signature = SignAlgo,
issuer = Issuer,
validity = validity(Opts),