@@ -49,9 +49,9 @@ discard block |
||
49 | 49 | |
50 | 50 | $RandomCompatDIR = dirname(__FILE__); |
51 | 51 | |
52 | - require_once $RandomCompatDIR.'/byte_safe_strings.php'; |
|
53 | - require_once $RandomCompatDIR.'/cast_to_int.php'; |
|
54 | - require_once $RandomCompatDIR.'/error_polyfill.php'; |
|
52 | + require_once $RandomCompatDIR . '/byte_safe_strings.php'; |
|
53 | + require_once $RandomCompatDIR . '/cast_to_int.php'; |
|
54 | + require_once $RandomCompatDIR . '/error_polyfill.php'; |
|
55 | 55 | |
56 | 56 | if (!function_exists('random_bytes')) { |
57 | 57 | /** |
@@ -72,9 +72,9 @@ discard block |
||
72 | 72 | if (extension_loaded('libsodium')) { |
73 | 73 | // See random_bytes_libsodium.php |
74 | 74 | if (PHP_VERSION_ID >= 50300 && function_exists('\\Sodium\\randombytes_buf')) { |
75 | - require_once $RandomCompatDIR.'/random_bytes_libsodium.php'; |
|
75 | + require_once $RandomCompatDIR . '/random_bytes_libsodium.php'; |
|
76 | 76 | } elseif (method_exists('Sodium', 'randombytes_buf')) { |
77 | - require_once $RandomCompatDIR.'/random_bytes_libsodium_legacy.php'; |
|
77 | + require_once $RandomCompatDIR . '/random_bytes_libsodium_legacy.php'; |
|
78 | 78 | } |
79 | 79 | } |
80 | 80 | |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | // place, that is not helpful to us here. |
114 | 114 | |
115 | 115 | // See random_bytes_dev_urandom.php |
116 | - require_once $RandomCompatDIR.'/random_bytes_dev_urandom.php'; |
|
116 | + require_once $RandomCompatDIR . '/random_bytes_dev_urandom.php'; |
|
117 | 117 | } |
118 | 118 | // Unset variables after use |
119 | 119 | $RandomCompat_basedir = null; |
@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | (PHP_VERSION_ID <= 50609 || PHP_VERSION_ID >= 50613) |
141 | 141 | ) { |
142 | 142 | // See random_bytes_mcrypt.php |
143 | - require_once $RandomCompatDIR.'/random_bytes_mcrypt.php'; |
|
143 | + require_once $RandomCompatDIR . '/random_bytes_mcrypt.php'; |
|
144 | 144 | } |
145 | 145 | } |
146 | 146 | $RandomCompatUrandom = null; |
@@ -162,7 +162,7 @@ discard block |
||
162 | 162 | $RandomCompatCOMtest = new COM('CAPICOM.Utilities.1'); |
163 | 163 | if (method_exists($RandomCompatCOMtest, 'GetRandom')) { |
164 | 164 | // See random_bytes_com_dotnet.php |
165 | - require_once $RandomCompatDIR.'/random_bytes_com_dotnet.php'; |
|
165 | + require_once $RandomCompatDIR . '/random_bytes_com_dotnet.php'; |
|
166 | 166 | } |
167 | 167 | } catch (com_exception $e) { |
168 | 168 | // Don't try to use it. |
@@ -190,7 +190,7 @@ discard block |
||
190 | 190 | } |
191 | 191 | |
192 | 192 | if (!function_exists('random_int')) { |
193 | - require_once $RandomCompatDIR.'/random_int.php'; |
|
193 | + require_once $RandomCompatDIR . '/random_int.php'; |
|
194 | 194 | } |
195 | 195 | |
196 | 196 | $RandomCompatDIR = null; |
@@ -1,7 +1,7 @@ |
||
1 | 1 | <?php |
2 | 2 | $ut_dir = dirname(dirname(__DIR__)); |
3 | -require_once $ut_dir.'/lib/byte_safe_strings.php'; |
|
4 | -require_once $ut_dir.'/lib/cast_to_int.php'; |
|
5 | -require_once $ut_dir.'/lib/error_polyfill.php'; |
|
6 | -require_once $ut_dir.'/lib/random_bytes_libsodium_legacy.php'; |
|
7 | -require_once $ut_dir.'/lib/random_int.php'; |
|
8 | 3 | \ No newline at end of file |
4 | +require_once $ut_dir . '/lib/byte_safe_strings.php'; |
|
5 | +require_once $ut_dir . '/lib/cast_to_int.php'; |
|
6 | +require_once $ut_dir . '/lib/error_polyfill.php'; |
|
7 | +require_once $ut_dir . '/lib/random_bytes_libsodium_legacy.php'; |
|
8 | +require_once $ut_dir . '/lib/random_int.php'; |
|
9 | 9 | \ No newline at end of file |