lib/argon2/engine.rb
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
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