diff options
author | Ingela Anderton Andin <[email protected]> | 2012-08-22 09:58:22 +0200 |
---|---|---|
committer | Ingela Anderton Andin <[email protected]> | 2012-08-22 14:00:47 +0200 |
commit | 8aa39bf90a213f086b8e4990e77570ddb6748496 (patch) | |
tree | b5f6e265a0b3711453fc04570f36551248862154 /lib/ssl/src/ssl_connection.erl | |
parent | c9db6bc867ecf1bf581849dd3290b0c9a40e1961 (diff) | |
download | otp-8aa39bf90a213f086b8e4990e77570ddb6748496.tar.gz otp-8aa39bf90a213f086b8e4990e77570ddb6748496.tar.bz2 otp-8aa39bf90a213f086b8e4990e77570ddb6748496.zip |
ssl: Use crypto:strong_rand_bytes if possible
Diffstat (limited to 'lib/ssl/src/ssl_connection.erl')
-rw-r--r-- | lib/ssl/src/ssl_connection.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ssl/src/ssl_connection.erl b/lib/ssl/src/ssl_connection.erl index f83341dee7..4954f5d668 100644 --- a/lib/ssl/src/ssl_connection.erl +++ b/lib/ssl/src/ssl_connection.erl @@ -2310,7 +2310,7 @@ handle_unexpected_message(Msg, Info, #state{negotiated_version = Version} = Stat {stop, normal, State}. make_premaster_secret({MajVer, MinVer}, rsa) -> - Rand = crypto:rand_bytes(?NUM_OF_PREMASTERSECRET_BYTES-2), + Rand = ssl:random_bytes(?NUM_OF_PREMASTERSECRET_BYTES-2), <<?BYTE(MajVer), ?BYTE(MinVer), Rand/binary>>; make_premaster_secret(_, _) -> undefined. |