Method: HenselCode::Tools#random_integer

Defined in:
lib/hensel_code/tools.rb

#random_integer(bits) ⇒ Object



6
7
8
# File 'lib/hensel_code/tools.rb', line 6

def random_integer(bits)
  OpenSSL::BN.rand(bits).to_i
end