Skip to content

Commit a91a986

Browse files
committed
Add missing extension to list of direct dependencies
1 parent b49a929 commit a91a986

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Utils/Random.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
namespace SimpleSAML\XMLSecurity\Utils;
66

7-
use Random\RandomException;
7+
use Exception;
88
use SimpleSAML\Assert\Assert;
99
use SimpleSAML\XMLSecurity\Exception\InvalidArgumentException;
1010
use SimpleSAML\XMLSecurity\Exception\RuntimeException;
@@ -43,7 +43,7 @@ public static function generateRandomBytes(int $length): string
4343
return random_bytes($length);
4444
} catch (ValueError) { // @phpstan-ignore-line
4545
throw new InvalidArgumentException('Invalid length received to generate random bytes.');
46-
} catch (RandomException) {
46+
} catch (Exception) {
4747
throw new RuntimeException(
4848
'Cannot generate random bytes, no cryptographically secure random generator available.',
4949
);

0 commit comments

Comments
 (0)