lib/pork.rb in pork-2.0.0 vs lib/pork.rb in pork-2.1.0
- old
+ new
@@ -44,14 +44,10 @@
def self.stat
@stat ||= Pork::Stat.new
end
def self.seed
- @seed ||= if Random.const_defined?(:DEFAULT)
- Random::DEFAULT.seed
- else
- Thread.current.randomizer.seed # Rubinius (rbx)
- end
+ @seed ||= Random.seed
end
def self.reseed
if ENV['PORK_SEED']
seed