module Random::Formatter

Public Instance Methods

int64() click to toggle source

SecureRandom.int64 generates a random signed 64-bit integer.

The result will be an integer between the values -9,223,372,036,854,775,808 and 9,223,372,036,854,775,807.

# File lib/securerandom/int64.rb, line 8
def int64
  random_bytes(8).unpack("q")[0]
end