diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rdoc/known_classes.rb | 1 | ||||
-rw-r--r-- | lib/securerandom.rb | 4 |
2 files changed, 2 insertions, 3 deletions
diff --git a/lib/rdoc/known_classes.rb b/lib/rdoc/known_classes.rb index ddc932c7c0..a04068a435 100644 --- a/lib/rdoc/known_classes.rb +++ b/lib/rdoc/known_classes.rb @@ -59,7 +59,6 @@ module RDoc "rb_eZeroDivError" => "ZeroDivError", "rb_mComparable" => "Comparable", - "rb_mDL" => "DL", "rb_mEnumerable" => "Enumerable", "rb_mErrno" => "Errno", "rb_mFConst" => "File::Constants", diff --git a/lib/securerandom.rb b/lib/securerandom.rb index 29368ee431..bb1d83e0d9 100644 --- a/lib/securerandom.rb +++ b/lib/securerandom.rb @@ -96,14 +96,14 @@ module SecureRandom crypt_acquire_context = Win32API.new("advapi32", "CryptAcquireContext", 'PPPII', 'L') @crypt_gen_random = Win32API.new("advapi32", "CryptGenRandom", 'VIP', 'L') - hProvStr = " " * DL::SIZEOF_VOIDP + hProvStr = " " * Fiddle::SIZEOF_VOIDP prov_rsa_full = 1 crypt_verifycontext = 0xF0000000 if crypt_acquire_context.call(hProvStr, nil, nil, prov_rsa_full, crypt_verifycontext) == 0 raise SystemCallError, "CryptAcquireContext failed: #{lastWin32ErrorMessage}" end - type = DL::SIZEOF_VOIDP == DL::SIZEOF_LONG_LONG ? 'q' : 'l' + type = Fiddle::SIZEOF_VOIDP == Fiddle::SIZEOF_LONG_LONG ? 'q' : 'l' @hProv, = hProvStr.unpack(type) @has_win32 = true |