File: load.rb

package info (click to toggle)
ruby-backports 3.25.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,912 kB
  • sloc: ruby: 11,757; makefile: 6
file content (17 lines) | stat: -rw-r--r-- 343 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
require "backports/random/implementation"

class Random
  include Backports::Random::Implementation
  extend Backports::Random::Implementation

  def self.new_seed
    Kernel::srand # use the built-in seed generator
    Kernel::srand # return the generated seed
  end

  def inspect
    "#<#{self.class.name}:#{object_id}>"
  end

  srand
end