Skip to content

Commit

Permalink
Fix issue #175
Browse files Browse the repository at this point in the history
  • Loading branch information
paragonie-security committed Feb 16, 2022
1 parent 76dbb53 commit 4958521
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/random.php
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ class_exists('COM')
try {
$RandomCompatCOMtest = new COM('CAPICOM.Utilities.1');
/** @psalm-suppress TypeDoesNotContainType */
if (method_exists($RandomCompatCOMtest, 'GetRandom')) {
if (is_callable(array($RandomCompatCOMtest, 'GetRandom'))) {
// See random_bytes_com_dotnet.php
require_once $RandomCompatDIR.DIRECTORY_SEPARATOR.'random_bytes_com_dotnet.php';
}
Expand Down

0 comments on commit 4958521

Please sign in to comment.