diff --git a/lib/securerandom.rb b/lib/securerandom.rb index 6079fdb..0548a06 100644 --- a/lib/securerandom.rb +++ b/lib/securerandom.rb @@ -85,7 +85,7 @@ def gen_random_urandom(n) rescue RuntimeError begin require 'openssl' - rescue NoMethodError + rescue LoadError raise NotImplementedError, "No random device" else alias gen_random gen_random_openssl