Skip to main content
CrystalDocs
Search documentation
Search
Browse Docs
CrystalShards
About
module
Ruby::V4::SecureRandom
Constants
ALNUM = "abcdefghijklmnopqrstuvwxyz
ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
"
Instance methods
alphanumeric
(n :
Int
= 27) :
String
Source
base64
(n :
Int
= 16) :
String
Source
hex
(n :
Int
= 16) :
String
Source
random_bytes
(n :
Int
= 16) :
String
Source
random_number
(max :
Int
) :
Int64
Source
random_number
(max :
Float
) :
Float64
Source
random_number
Source
urlsafe_base64
(n :
Int
= 16, padding :
Bool
= false) :
String
Source