Skip to content

Commit

Permalink
use safer random function for security reason
Browse files Browse the repository at this point in the history
  • Loading branch information
tagomoris committed Jan 30, 2017
1 parent c7e4921 commit 6e117cb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/fluent/plugin/in_forward.rb
Expand Up @@ -19,6 +19,7 @@
require 'fluent/msgpack_factory'
require 'yajl'
require 'digest'
require 'securerandom'

module Fluent::Plugin
class ForwardInput < Input
Expand Down Expand Up @@ -394,7 +395,7 @@ def select_authenticate_users(node, username)
end

def generate_salt
OpenSSL::Random.random_bytes(16)
::SecureRandom.random_bytes(16)
end

def generate_helo(nonce, user_auth_salt)
Expand Down

0 comments on commit 6e117cb

Please sign in to comment.