Class: Random
- Extended by:
- Backports::Random::Implementation
- Includes:
- Backports::Random::Implementation
- Defined in:
- lib/backports/random/load.rb
Instance Attribute Summary
Attributes included from Backports::Random::Implementation
Class Method Summary collapse
Instance Method Summary collapse
Methods included from Backports::Random::Implementation
==, bytes, initialize, marshal_dump, marshal_load, rand, srand
Class Method Details
.new_seed ⇒ Object
7 8 9 10 |
# File 'lib/backports/random/load.rb', line 7 def self.new_seed Kernel::srand # use the built-in seed generator Kernel::srand # return the generated seed end |
Instance Method Details
#inspect ⇒ Object
12 13 14 |
# File 'lib/backports/random/load.rb', line 12 def inspect "#<#{self.class.name}:#{object_id}>" end |