technion/ruby-argon2

View on GitHub
lib/argon2/engine.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

require 'securerandom'

module Argon2
  # Generates a random, binary string for use as a salt.
  class Engine
    def self.saltgen
      SecureRandom.random_bytes(Argon2::Constants::SALT_LEN)
    end
  end
end