Sha256: a0026272d3171d7bcd931ec4551f48bba2087c7702a0dce72bb89e405e52bff0

Contents?: true

Size: 200 Bytes

Versions: 6

Compression:

Stored size: 200 Bytes

Contents

require 'securerandom'

module Sham
  class << self
    def string! len = 5
      ::SecureRandom.hex(len)
    end

    def integer! top = 100
      ::SecureRandom.random_number(top)
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
sham-2.0.0 lib/sham/data.rb
sham-1.2.0 lib/sham/data.rb
sham-1.1.0 lib/sham/data.rb
sham-1.0.3 lib/sham/data.rb
sham-1.0.2 lib/sham/data.rb
sham-1.0.1 lib/sham/data.rb