module FFaker::Random
def self.new_rng
def self.new_rng ::Random.new(seed) end
def self.rand(max = nil)
def self.rand(max = nil) return rng.rand(max) if max rng.rand end
def self.reset!
def self.reset! @rng = new_rng end
def self.rng
def self.rng @rng ||= new_rng end
def self.seed
def self.seed @seed ||= ::Random.new_seed end
def self.seed=(new_seed)
def self.seed=(new_seed) @seed = new_seed reset! new_seed end