method

generate_iv

rails latest stable - Class: ActiveRecord::Encryption::Cipher::Aes256Gcm
generate_iv(cipher, clear_text)
private

No documentation available.

# File activerecord/lib/active_record/encryption/cipher/aes256_gcm.rb, line 87
          def generate_iv(cipher, clear_text)
            if @deterministic
              generate_deterministic_iv(clear_text)
            else
              cipher.random_iv
            end
          end