Sha256: 0012bc77ff3efbca7d970b8d4dc53a6867cbe0302a8021c2ddcce7ca4b3ddae1

Contents?: true

Size: 185 Bytes

Versions: 1

Compression:

Stored size: 185 Bytes

Contents

def generate_random_string(length=10)
  chars = ('a'..'z').to_a + ('A'..'Z').to_a + ('0'..'9').to_a
  random_string = Array.new(length) { chars.sample }.join
  return random_string
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
voucherify-5.0.0 __tests__/lib/utils.rb