Module: InsecureRandom::Overrides

Defined in:
lib/insecure_random.rb

Overview

The Overrides module holds all of the method overrides necessary to change SecureRandom’s behavior to repeatable by seeding.

Instance Method Summary collapse

Instance Method Details

#gen_random(n) ⇒ Object



19
20
21
# File 'lib/insecure_random.rb', line 19

def gen_random(n)
  Random.bytes(n)
end