Sha256: 762d1f4b8743124f10ab501be03d1ed3ddd2160bc5a03bca68b6502d521a715c
Contents?: true
Size: 611 Bytes
Versions: 3
Compression:
Stored size: 611 Bytes
Contents
module Ccrypto module Ruby class SecureRandomEngine def self.random_bytes(size) SecureRandom.random_bytes(size) end def self.random_hex(size) SecureRandom.hex(size) end def self.random_b64(size) SecureRandom.base64(size) end def self.random_uuid SecureRandom.uuid end def self.random_alphanum(size) SecureRandom.alphanumeric(size) end def self.random_number(val = nil) SecureRandom.rand(val) end self.singleton_class.alias_method :rand, :random_number end end end
Version data entries
3 entries across 3 versions & 1 rubygems