Sha256: 4ee528097ba192bbb3e5316fa36f4547c9bcfaf488f1cdcd1bc43488b95e1c92

Contents?: true

Size: 206 Bytes

Versions: 2

Compression:

Stored size: 206 Bytes

Contents

# frozen_string_literal: true

require 'securerandom'

module SecureRandom
  module_function

  def random_number_string(length, base = 10)
    random_number(base**length).to_string(length, base)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
omu-support-0.1.2 lib/omu_support/core_ext/securerandom.rb
omu-support-0.1.1 lib/omu_support/core_ext/securerandom.rb