@@ -37,9 +37,9 @@ discard block |
||
| 37 | 37 | define('RANDOM_COMPAT_READ_BUFFER', 8); |
| 38 | 38 | } |
| 39 | 39 | $RandomCompatDIR = dirname(__FILE__); |
| 40 | - require_once $RandomCompatDIR.'/byte_safe_strings.php'; |
|
| 41 | - require_once $RandomCompatDIR.'/cast_to_int.php'; |
|
| 42 | - require_once $RandomCompatDIR.'/error_polyfill.php'; |
|
| 40 | + require_once $RandomCompatDIR . '/byte_safe_strings.php'; |
|
| 41 | + require_once $RandomCompatDIR . '/cast_to_int.php'; |
|
| 42 | + require_once $RandomCompatDIR . '/error_polyfill.php'; |
|
| 43 | 43 | if (!function_exists('random_bytes')) { |
| 44 | 44 | /** |
| 45 | 45 | * PHP 5.2.0 - 5.6.x way to implement random_bytes() |
@@ -59,9 +59,9 @@ discard block |
||
| 59 | 59 | if (extension_loaded('libsodium')) { |
| 60 | 60 | // See random_bytes_libsodium.php |
| 61 | 61 | if (PHP_VERSION_ID >= 50300 && function_exists('\\Sodium\\randombytes_buf')) { |
| 62 | - require_once $RandomCompatDIR.'/random_bytes_libsodium.php'; |
|
| 62 | + require_once $RandomCompatDIR . '/random_bytes_libsodium.php'; |
|
| 63 | 63 | } elseif (method_exists('Sodium', 'randombytes_buf')) { |
| 64 | - require_once $RandomCompatDIR.'/random_bytes_libsodium_legacy.php'; |
|
| 64 | + require_once $RandomCompatDIR . '/random_bytes_libsodium_legacy.php'; |
|
| 65 | 65 | } |
| 66 | 66 | } |
| 67 | 67 | if ( |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | // that is not helpful to us here. |
| 80 | 80 | |
| 81 | 81 | // See random_bytes_dev_urandom.php |
| 82 | - require_once $RandomCompatDIR.'/random_bytes_dev_urandom.php'; |
|
| 82 | + require_once $RandomCompatDIR . '/random_bytes_dev_urandom.php'; |
|
| 83 | 83 | } |
| 84 | 84 | if ( |
| 85 | 85 | !function_exists('random_bytes') && |
@@ -87,7 +87,7 @@ discard block |
||
| 87 | 87 | extension_loaded('mcrypt') |
| 88 | 88 | ) { |
| 89 | 89 | // See random_bytes_mcrypt.php |
| 90 | - require_once $RandomCompatDIR.'/random_bytes_mcrypt.php'; |
|
| 90 | + require_once $RandomCompatDIR . '/random_bytes_mcrypt.php'; |
|
| 91 | 91 | } |
| 92 | 92 | if ( |
| 93 | 93 | !function_exists('random_bytes') && |
@@ -104,7 +104,7 @@ discard block |
||
| 104 | 104 | $RandomCompatCOMtest = new COM('CAPICOM.Utilities.1'); |
| 105 | 105 | if (method_exists($RandomCompatCOMtest, 'GetRandom')) { |
| 106 | 106 | // See random_bytes_com_dotnet.php |
| 107 | - require_once $RandomCompatDIR.'/random_bytes_com_dotnet.php'; |
|
| 107 | + require_once $RandomCompatDIR . '/random_bytes_com_dotnet.php'; |
|
| 108 | 108 | } |
| 109 | 109 | } catch (com_exception $e) { |
| 110 | 110 | // Don't try to use it. |
@@ -127,7 +127,7 @@ discard block |
||
| 127 | 127 | ) |
| 128 | 128 | ) { |
| 129 | 129 | // See random_bytes_openssl.php |
| 130 | - require_once $RandomCompatDIR.'/random_bytes_openssl.php'; |
|
| 130 | + require_once $RandomCompatDIR . '/random_bytes_openssl.php'; |
|
| 131 | 131 | } |
| 132 | 132 | if (!function_exists('random_bytes')) { |
| 133 | 133 | /** |
@@ -143,7 +143,7 @@ discard block |
||
| 143 | 143 | } |
| 144 | 144 | } |
| 145 | 145 | if (!function_exists('random_int')) { |
| 146 | - require_once $RandomCompatDIR.'/random_int.php'; |
|
| 146 | + require_once $RandomCompatDIR . '/random_int.php'; |
|
| 147 | 147 | } |
| 148 | 148 | $RandomCompatDIR = null; |
| 149 | 149 | } |