Module: Nuckle::Random
- Defined in:
- lib/nuckle/random.rb
Overview
Cryptographically secure random byte generation.
Class Method Summary collapse
-
.random_bytes(n) ⇒ String
Generates
ncryptographically secure random bytes.
Class Method Details
.random_bytes(n) ⇒ String
Generates n cryptographically secure random bytes.
12 13 14 |
# File 'lib/nuckle/random.rb', line 12 def self.random_bytes(n) SecureRandom.random_bytes(n) end |