module Randomid
Constants
- VERSION
Public Class Methods
generate_uid(length=16)
click to toggle source
# File lib/randomid.rb, line 8 def self.generate_uid(length=16) token = SecureRandom.urlsafe_base64(16) token.slice!(0...-length) token end