Project

General

Profile

Actions

Backport #4175

closed

OpenSSL::BN#prime? raises TypeError

Added by nahi (Hiroshi Nakamura) almost 12 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
Normal
[ruby-core:33783]

Description

=begin
Original: http://redmine.ruby-lang.org/issues/show/3816

irb(main):001:0> require'openssl'=> trueirb(main):002:0> OpenSSL::BN.new("461166461445805738999").prime?
TypeError: no implicit conversion from nil to integer
from (irb):2:in prime?' from (irb):2 from /home/naruse/local/ruby_1_9_2/bin/irb:12:in '
=end

Actions

Also available in: Atom PDF

Like0
Like0Like0