3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** * Random_* Compatibility Library * for using the new PHP 7 random_* API in PHP 5 projects * * The MIT License (MIT) * * Copyright (c) 2015 Paragon Initiative Enterprises * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ if (!defined('RANDOM_COMPAT_READ_BUFFER')) { define('RANDOM_COMPAT_READ_BUFFER', 8); } if (!function_exists('random_bytes')) { /** * PHP 5.2.0 - 5.6.x way to implement random_bytes() * * We use conditional statements here to define the function in accordance * to the operating environment. It's a micro-optimization. * * In order of preference: * 1. fread() /dev/urandom if available * 2. mcrypt_create_iv($bytes, MCRYPT_CREATE_IV) * 3. COM('CAPICOM.Utilities.1')->GetRandom() * 4. openssl_random_pseudo_bytes() * * See ERRATA.md for our reasoning behind this particular order */ if (!ini_get('open_basedir') && is_readable('/dev/urandom')) { /** * Unless open_basedir is enabled, use /dev/urandom for * random numbers in accordance with best practices * * Why we use /dev/urandom and not /dev/random * @ref http://sockpuppet.org/blog/2014/02/25/safely-generate-random-numbers * * @param int $bytes * * @throws Exception * * @return string */ function random_bytes($bytes) { static $fp = null; /** * This block should only be run once */ if (empty($fp)) { /** * We use /dev/urandom if it is a char device. * We never fall back to /dev/random */ $fp = fopen('/dev/urandom', 'rb'); if (!empty($fp)) { $st = fstat($fp); if (($st['mode'] & 020000) === 0) { fclose($fp); $fp = false; } } /** * stream_set_read_buffer() does not exist in HHVM * * If we don't set the stream's read buffer to 0, PHP will * internally buffer 8192 bytes, which can waste entropy * * stream_set_read_buffer returns 0 on success */ if (!empty($fp) && function_exists('stream_set_read_buffer')) { stream_set_read_buffer($fp, RANDOM_COMPAT_READ_BUFFER); } } /** * This if() block only runs if we managed to open a file handle * * It does not belong in an else {} block, because the above * if (empty($fp)) line is logic that should only be run once per * page load. */ if (!empty($fp)) { $remaining = $bytes; $buf = ''; /** * We use fread() in a loop to protect against partial reads */ do { $read = fread($fp, $remaining); if ($read === false) { /** * We cannot safely read from the file. Exit the * do-while loop and trigger the exception condition */ $buf = false; break; } /** * Decrease the number of bytes returned from remaining */ $remaining -= RandomCompat_strlen($read); $buf .= $read; } while ($remaining > 0); /** * Is our result valid? */ if ($buf !== false) { if (RandomCompat_strlen($buf) === $bytes) { /** * Return our random entropy buffer here: */ return $buf; } } } /** * If we reach here, PHP has failed us. */ throw new Exception( 'PHP failed to generate random data.' ); } } elseif (function_exists('mcrypt_create_iv') && version_compare(PHP_VERSION, '5.3.7') >= 0) { /** * Powered by ext/mcrypt (and thankfully NOT libmcrypt) * * @ref https://bugs.php.net/bug.php?id=55169 * @ref https://github.com/php/php-src/blob/c568ffe5171d942161fc8dda066bce844bdef676/ext/mcrypt/mcrypt.c#L1321-L1386 * * @param int $bytes * * @throws Exception * * @return string */ function random_bytes($bytes) { if (!is_int($bytes)) { throw new Exception( 'Length must be an integer' ); } if ($bytes < 1) { throw new Exception( 'Length must be greater than 0' ); } $buf = mcrypt_create_iv($bytes, MCRYPT_DEV_URANDOM); if ($buf !== false) { if (RandomCompat_strlen($buf) === $bytes) { /** * Return our random entropy buffer here: */ return $buf; } } /** * If we reach here, PHP has failed us. */ throw new Exception( 'PHP failed to generate random data.' ); } } elseif (extension_loaded('com_dotnet')) { /** * Windows with PHP < 5.3.0 will not have the function * openssl_random_pseudo_bytes() available, so let's use * CAPICOM to work around this deficiency. * * @param int $bytes * * @throws Exception * * @return string */ function random_bytes($bytes) { $buf = ''; $util = new COM('CAPICOM.Utilities.1'); $execCount = 0; /** * Let's not let it loop forever. If we run N times and fail to * get N bytes of random data, then CAPICOM has failed us. */ do { $buf .= base64_decode($util->GetRandom($bytes, 0)); if (RandomCompat_strlen($buf) >= $bytes) { /** * Return our random entropy buffer here: */ return RandomCompat_substr($buf, 0, $bytes); } ++$execCount; } while ($execCount < $bytes); /** * If we reach here, PHP has failed us. */ throw new Exception( 'PHP failed to generate random data.' ); } } elseif (function_exists('openssl_random_pseudo_bytes')) { /** * Since openssl_random_pseudo_bytes() uses openssl's * RAND_pseudo_bytes() API, which has been marked as deprecated by the * OpenSSL team, this is our last resort before failure. * * @ref https://www.openssl.org/docs/crypto/RAND_bytes.html * * @param int $bytes * * @throws Exception * * @return string */ function random_bytes($bytes) { $secure = true; /** * $secure is passed by reference. If it's set to false, fail. Note * that this will only return false if this function fails to return * any data. * * @ref https://github.com/paragonie/random_compat/issues/6#issuecomment-119564973 */ $buf = openssl_random_pseudo_bytes($bytes, $secure); if ($buf !== false && $secure) { if (RandomCompat_strlen($buf) === $bytes) { return $buf; } } /** * If we reach here, PHP has failed us. */ throw new Exception( 'PHP failed to generate random data.' ); } } else { /** * We don't have any more options, so let's throw an exception right now * and hope the developer won't let it fail silently. */ throw new Exception( 'There is no suitable CSPRNG installed on your system' ); } } if (!function_exists('random_int')) { /** * Fetch a random integer between $min and $max inclusive * * @param int $min * @param int $max * * @throws Exception * * @return int */ function random_int($min, $max) { /** * Type and input logic checks */ if (!is_int($min)) { throw new Exception( 'random_int(): $min must be an integer' ); } if (!is_int($max)) { throw new Exception( 'random_int(): $max must be an integer' ); } if ($min > $max) { throw new Exception( 'Minimum value must be less than or equal to the maximum value' ); } if ($max === $min) { return $min; } /** * Initialize variables to 0 * * We want to store: * $bytes => the number of random bytes we need * $mask => an integer bitmask (for use with the &) operator * so we can minimize the number of discards */ $attempts = $bits = $bytes = $mask = $valueShift = 0; /** * At this point, $range is a positive number greater than 0. It might * overflow, however, if $max - $min > PHP_INT_MAX. PHP will cast it to * a float and we will lose some precision. */ $range = $max - $min; /** * Test for integer overflow: */ if (!is_int($range)) { /** * Still safely calculate wider ranges. * Provided by @CodesInChaos, @oittaa * * @ref https://gist.github.com/CodesInChaos/03f9ea0b58e8b2b8d435 * * We use ~0 as a mask in this case because it generates all 1s * * @ref https://eval.in/400356 (32-bit) * @ref http://3v4l.org/XX9r5 (64-bit) */ $bytes = PHP_INT_SIZE; $mask = ~0; } else { /** * $bits is effectively ceil(log($range, 2)) without dealing with * type juggling */ while ($range > 0) { if ($bits % 8 === 0) { ++$bytes; } ++$bits; $range >>= 1; $mask = $mask << 1 | 1; } $valueShift = $min; } /** * Now that we have our parameters set up, let's begin generating * random integers until one falls between $min and $max */ do { /** * The rejection probability is at most 0.5, so this corresponds * to a failure probability of 2^-128 for a working RNG */ if ($attempts > 128) { throw new Exception( 'random_int: RNG is broken - too many rejections' ); } /** * Let's grab the necessary number of random bytes */ $randomByteString = random_bytes($bytes); if ($randomByteString === false) { throw new Exception( 'Random number generator failure' ); } /** * Let's turn $randomByteString into an integer * * This uses bitwise operators (<< and |) to build an integer * out of the values extracted from ord() * * Example: [9F] | [6D] | [32] | [0C] => * 159 + 27904 + 3276800 + 201326592 => * 204631455 */ $val = 0; for ($i = 0; $i < $bytes; ++$i) { $val |= ord($randomByteString[$i]) << ($i * 8); } /** * Apply mask */ $val &= $mask; $val += $valueShift; ++$attempts; /** * If $val overflows to a floating point number, * ... or is larger than $max, * ... or smaller than $int, * then try again. */ } while (!is_int($val) || $val > $max || $val < $min); return (int) $val; } } if (!function_exists('RandomCompat_strlen')) { if (function_exists('mb_strlen')) { /** * strlen() implementation that isn't brittle to mbstring.func_overload * * This version uses mb_strlen() in '8bit' mode to treat strings as raw * binary rather than UTF-8, ISO-8859-1, etc * * @param string $binary_string * * @throws InvalidArgumentException * * @return int */ function RandomCompat_strlen($binary_string) { if (!is_string($binary_string)) { throw new InvalidArgumentException( 'RandomCompat_strlen() expects a string' ); } return mb_strlen($binary_string, '8bit'); } } else { /** * strlen() implementation that isn't brittle to mbstring.func_overload * * This version just used the default strlen() * * @param string $binary_string * * @throws InvalidArgumentException * * @return int */ function RandomCompat_strlen($binary_string) { if (!is_string($binary_string)) { throw new InvalidArgumentException( 'RandomCompat_strlen() expects a string' ); } return strlen($binary_string); } } } if (!function_exists('RandomCompat_substr')) { if (function_exists('mb_substr')) { /** * substr() implementation that isn't brittle to mbstring.func_overload * * This version uses mb_substr() in '8bit' mode to treat strings as raw * binary rather than UTF-8, ISO-8859-1, etc * * @param string $binary_string * @param int $start * @param int $length (optional) * * @throws InvalidArgumentException * * @return string */ function RandomCompat_substr($binary_string, $start, $length = null) { if (!is_string($binary_string)) { throw new InvalidArgumentException( 'RandomCompat_substr(): First argument should be a string' ); } if (!is_int($start)) { throw new InvalidArgumentException( 'RandomCompat_substr(): Second argument should be an integer' ); } if ($length === null) { /** * mb_substr($str, 0, NULL, '8bit') returns an empty string on * PHP 5.3, so we have to find the length ourselves. */ $length = RandomCompat_strlen($length) - $start; } elseif (!is_int($length)) { throw new InvalidArgumentException( 'RandomCompat_substr(): Third argument should be an integer, or omitted' ); } return mb_substr($binary_string, $start, $length, '8bit'); } } else { /** * substr() implementation that isn't brittle to mbstring.func_overload * * This version just uses the default substr() * * @param string $binary_string * @param int $start * @param int $length (optional) * * @throws InvalidArgumentException * * @return string */ function RandomCompat_substr($binary_string, $start, $length = null) { if (!is_string($binary_string)) { throw new InvalidArgumentException( 'RandomCompat_substr(): First argument should be a string' ); } if (!is_int($start)) { throw new InvalidArgumentException( 'RandomCompat_substr(): Second argument should be an integer' ); } if ($length !== null) { if (!is_int($length)) { throw new InvalidArgumentException( 'RandomCompat_substr(): Third argument should be an integer, or omitted' ); } return substr($binary_string, $start, $length); } return substr($binary_string, $start); } } } var_dump([ random_int(-PHP_INT_MAX, PHP_INT_MAX), random_int(-2147483648, 2147483647) ]);
Output for 8.2.9
array(2) { [0]=> int(-5739027247197685758) [1]=> int(8413649) }
Output for 8.2.8
array(2) { [0]=> int(-5113120591767734832) [1]=> int(-1206041785) }
Output for 8.2.7
array(2) { [0]=> int(6421041048848403938) [1]=> int(192534734) }
Output for 8.2.6
array(2) { [0]=> int(1858041970144998818) [1]=> int(-2097734511) }
Output for 8.2.5
array(2) { [0]=> int(-950250358411132946) [1]=> int(412166075) }
Output for 8.2.4
array(2) { [0]=> int(-836537947767019502) [1]=> int(1857925795) }
Output for 8.2.3
array(2) { [0]=> int(3741544403928021903) [1]=> int(-1774623946) }
Output for 8.2.2
array(2) { [0]=> int(5706900232380907862) [1]=> int(-2118758489) }
Output for 8.2.1
array(2) { [0]=> int(6248203408148123128) [1]=> int(-1042785393) }
Output for 8.2.0
array(2) { [0]=> int(-1451087733635503077) [1]=> int(-1408076721) }
Output for 8.1.22
array(2) { [0]=> int(465212039130193847) [1]=> int(-20522573) }
Output for 8.1.21
array(2) { [0]=> int(-5993032405574213489) [1]=> int(399733210) }
Output for 8.1.20
array(2) { [0]=> int(-5886452870107200334) [1]=> int(583332461) }
Output for 8.1.19
array(2) { [0]=> int(-4327288460715258152) [1]=> int(1628826331) }
Output for 8.1.18
array(2) { [0]=> int(-7700312160646936546) [1]=> int(2092860639) }
Output for 8.1.17
array(2) { [0]=> int(6060194446942021129) [1]=> int(-1974667956) }
Output for 8.1.16
array(2) { [0]=> int(2768121845419235804) [1]=> int(-1593688584) }
Output for 8.1.15
array(2) { [0]=> int(-726405485691335792) [1]=> int(-40762460) }
Output for 8.1.14
array(2) { [0]=> int(-4593030270562490317) [1]=> int(550667216) }
Output for 8.1.13
array(2) { [0]=> int(7794805174059848682) [1]=> int(-1994115925) }
Output for 8.1.12
array(2) { [0]=> int(5632412630017344358) [1]=> int(429787913) }
Output for 8.1.11
array(2) { [0]=> int(3116941506499244275) [1]=> int(1999514544) }
Output for 8.1.10
array(2) { [0]=> int(-4010270980919873860) [1]=> int(-782133146) }
Output for 8.1.9
array(2) { [0]=> int(6225971127187215438) [1]=> int(248840365) }
Output for 8.1.8
array(2) { [0]=> int(-5387044833652746205) [1]=> int(-1401555159) }
Output for 8.1.7
array(2) { [0]=> int(3637365893964024411) [1]=> int(-1948278391) }
Output for 8.1.6
array(2) { [0]=> int(-9117079468785233400) [1]=> int(1789271454) }
Output for 8.1.5
array(2) { [0]=> int(-8043599245389600365) [1]=> int(1112025211) }
Output for 8.1.4
array(2) { [0]=> int(5718104456155878135) [1]=> int(-2115835346) }
Output for 8.1.3
array(2) { [0]=> int(-5646779424502893084) [1]=> int(-1234148303) }
Output for 8.1.2
array(2) { [0]=> int(-9149798400001860070) [1]=> int(602060542) }
Output for 8.1.1
array(2) { [0]=> int(981563601888736159) [1]=> int(-969343161) }
Output for 8.1.0
array(2) { [0]=> int(-4155266685275003082) [1]=> int(-2067198434) }
Output for 8.0.30
array(2) { [0]=> int(-544716254052011777) [1]=> int(-102774588) }
Output for 8.0.29
array(2) { [0]=> int(4020582611815411935) [1]=> int(2083725035) }
Output for 8.0.28
array(2) { [0]=> int(-2199022310738803500) [1]=> int(577671547) }
Output for 8.0.27
array(2) { [0]=> int(1779691573054863002) [1]=> int(-1723996938) }
Output for 8.0.26
array(2) { [0]=> int(-4595376967743156490) [1]=> int(-768456010) }
Output for 8.0.25
array(2) { [0]=> int(-9093672399177024116) [1]=> int(1914906646) }
Output for 8.0.24
array(2) { [0]=> int(6755246127955979294) [1]=> int(977569961) }
Output for 8.0.23
array(2) { [0]=> int(4419071158932006860) [1]=> int(-581834558) }
Output for 8.0.22
array(2) { [0]=> int(-8001407195063852236) [1]=> int(1940506397) }
Output for 8.0.21
array(2) { [0]=> int(8387405182209663708) [1]=> int(546328413) }
Output for 8.0.20
array(2) { [0]=> int(-4401013091215837444) [1]=> int(1018420298) }
Output for 8.0.19
array(2) { [0]=> int(3731443922495604638) [1]=> int(-796303552) }
Output for 8.0.18
array(2) { [0]=> int(2867159683303145167) [1]=> int(-906548871) }
Output for 8.0.17
array(2) { [0]=> int(3264095126899602939) [1]=> int(197555528) }
Output for 8.0.16
array(2) { [0]=> int(-2426609276598884378) [1]=> int(-1869079459) }
Output for 8.0.15
array(2) { [0]=> int(-3521185963563556245) [1]=> int(2121397341) }
Output for 8.0.14
array(2) { [0]=> int(-1892190464584560885) [1]=> int(165867893) }
Output for 8.0.13
array(2) { [0]=> int(-2466781539982440086) [1]=> int(1664412030) }
Output for 8.0.12
array(2) { [0]=> int(1782207267491450377) [1]=> int(1623121356) }
Output for 8.0.11
array(2) { [0]=> int(-7280340845667838845) [1]=> int(-242968440) }
Output for 8.0.10
array(2) { [0]=> int(-4849959156412837399) [1]=> int(-1775297533) }
Output for 8.0.9
array(2) { [0]=> int(-5540955154759211623) [1]=> int(1540866804) }
Output for 8.0.8
array(2) { [0]=> int(5305586426376843456) [1]=> int(-1666368014) }
Output for 8.0.7
array(2) { [0]=> int(485103999061488676) [1]=> int(-359167864) }
Output for 8.0.6
array(2) { [0]=> int(-7801822570392739717) [1]=> int(-1595061528) }
Output for 8.0.5
array(2) { [0]=> int(7301966655910596006) [1]=> int(1147810473) }
Output for 8.0.3
array(2) { [0]=> int(-5917885527859885485) [1]=> int(815545037) }
Output for 8.0.2
array(2) { [0]=> int(-2675174339593558946) [1]=> int(949246391) }
Output for 8.0.1
array(2) { [0]=> int(-7806468945420386576) [1]=> int(151923868) }
Output for 8.0.0
array(2) { [0]=> int(-6179566107122198484) [1]=> int(-1322473566) }
Output for 7.4.33
array(2) { [0]=> int(1400733014522038212) [1]=> int(-279058135) }
Output for 7.4.32
array(2) { [0]=> int(-2376431793529816490) [1]=> int(1380485875) }
Output for 7.4.30
array(2) { [0]=> int(5307801259649577658) [1]=> int(1014698404) }
Output for 7.4.29
array(2) { [0]=> int(1714562970849778998) [1]=> int(-1004683075) }
Output for 7.4.28
array(2) { [0]=> int(5339436442154404107) [1]=> int(1370710897) }
Output for 7.4.27
array(2) { [0]=> int(6380123436030013647) [1]=> int(1913733618) }
Output for 7.4.26
array(2) { [0]=> int(6048342064567073843) [1]=> int(1071196685) }
Output for 7.4.25
array(2) { [0]=> int(5411954241638010012) [1]=> int(-756103670) }
Output for 7.4.24
array(2) { [0]=> int(2621215376389926920) [1]=> int(-1456655367) }
Output for 7.4.23
array(2) { [0]=> int(4843927028676246108) [1]=> int(145217916) }
Output for 7.4.22
array(2) { [0]=> int(6387313022577486736) [1]=> int(1527071595) }
Output for 7.4.21
array(2) { [0]=> int(7366871763560569275) [1]=> int(313837836) }
Output for 7.4.20
array(2) { [0]=> int(3116593041553843709) [1]=> int(-1332125798) }
Output for 7.4.19
array(2) { [0]=> int(-574110771942113548) [1]=> int(-1028873209) }
Output for 7.4.18
array(2) { [0]=> int(-4335544267644773452) [1]=> int(-401743824) }
Output for 7.4.16
array(2) { [0]=> int(4436572198788851529) [1]=> int(380430312) }
Output for 7.4.15
array(2) { [0]=> int(-5640164075090385711) [1]=> int(-1833783153) }
Output for 7.4.14
array(2) { [0]=> int(6914060394307721871) [1]=> int(669049963) }
Output for 7.4.13
array(2) { [0]=> int(3537255068216911509) [1]=> int(1471430639) }
Output for 7.4.12
array(2) { [0]=> int(8806132644090534450) [1]=> int(513639857) }
Output for 7.4.11
array(2) { [0]=> int(6156786454122102995) [1]=> int(-1597835245) }
Output for 7.4.10
array(2) { [0]=> int(-6769485334842214757) [1]=> int(1475044553) }
Output for 7.4.9
array(2) { [0]=> int(-4208954929351771450) [1]=> int(1323331802) }
Output for 7.4.8
array(2) { [0]=> int(5762989720465140563) [1]=> int(791359577) }
Output for 7.4.7
array(2) { [0]=> int(2187485229966189343) [1]=> int(-1358689030) }
Output for 7.4.6
array(2) { [0]=> int(-5857384998813089568) [1]=> int(-688609436) }
Output for 7.4.5
array(2) { [0]=> int(-437827968284650280) [1]=> int(1495669156) }
Output for 7.4.4
array(2) { [0]=> int(-5627643056656118778) [1]=> int(1917968542) }
Output for 7.4.3
array(2) { [0]=> int(-159461829470305077) [1]=> int(-703436357) }
Output for 7.4.2
array(2) { [0]=> int(-964828931215809791) [1]=> int(2043243272) }
Output for 7.4.1
array(2) { [0]=> int(7228644062427167235) [1]=> int(-1210252497) }
Output for 7.4.0
array(2) { [0]=> int(1338575685270427534) [1]=> int(-1191063761) }
Output for 7.3.33
array(2) { [0]=> int(-5715809180136625337) [1]=> int(434674027) }
Output for 7.3.32
array(2) { [0]=> int(-4158026660090372894) [1]=> int(-1050902442) }
Output for 7.3.31
array(2) { [0]=> int(4781849244636394277) [1]=> int(570442403) }
Output for 7.3.30
array(2) { [0]=> int(-5567097421482487449) [1]=> int(-295432816) }
Output for 7.3.29
array(2) { [0]=> int(6591401066974104280) [1]=> int(-408202801) }
Output for 7.3.28
array(2) { [0]=> int(-4320054220884042500) [1]=> int(513774182) }
Output for 7.3.27
array(2) { [0]=> int(-5603075945130421813) [1]=> int(1901083176) }
Output for 7.3.26
array(2) { [0]=> int(-8791027326576656079) [1]=> int(-26690306) }
Output for 7.3.25
array(2) { [0]=> int(6352771160711221221) [1]=> int(1621189420) }
Output for 7.3.24
array(2) { [0]=> int(-5774659903725252579) [1]=> int(727857941) }
Output for 7.3.23
array(2) { [0]=> int(4153090291745419601) [1]=> int(1658199368) }
Output for 7.3.22
array(2) { [0]=> int(7044164696157172172) [1]=> int(1786754734) }
Output for 7.3.21
array(2) { [0]=> int(-4076056741971010163) [1]=> int(1961877644) }
Output for 7.3.20
array(2) { [0]=> int(5571375573374526617) [1]=> int(1888208096) }
Output for 7.3.19
array(2) { [0]=> int(182155840088071788) [1]=> int(-1929363910) }
Output for 7.3.18
array(2) { [0]=> int(1344294090832653547) [1]=> int(-1845951480) }
Output for 7.3.17
array(2) { [0]=> int(-513525273771969014) [1]=> int(1707284684) }
Output for 7.3.16
array(2) { [0]=> int(-8617194980499933748) [1]=> int(-365269086) }
Output for 7.3.15
array(2) { [0]=> int(8930751491715072605) [1]=> int(-1088178372) }
Output for 7.3.14
array(2) { [0]=> int(-756422527344554498) [1]=> int(-101485822) }
Output for 7.3.13
array(2) { [0]=> int(-1905773824382539627) [1]=> int(399068708) }
Output for 7.3.12
array(2) { [0]=> int(2768570969997068429) [1]=> int(-1351632735) }
Output for 7.3.11
array(2) { [0]=> int(-3582472706854850481) [1]=> int(-1371985278) }
Output for 7.3.10
array(2) { [0]=> int(1872649775360850015) [1]=> int(-809808989) }
Output for 7.3.9
array(2) { [0]=> int(1749885635091294077) [1]=> int(723377963) }
Output for 7.3.8
array(2) { [0]=> int(-2123716101022330132) [1]=> int(-1956384561) }
Output for 7.3.7
array(2) { [0]=> int(8668408181487526045) [1]=> int(-1410082606) }
Output for 7.3.6
array(2) { [0]=> int(-4695621114113016608) [1]=> int(1258795258) }
Output for 7.3.5
array(2) { [0]=> int(3755214063112751976) [1]=> int(1196409640) }
Output for 7.3.4
array(2) { [0]=> int(-2880460123274642820) [1]=> int(-1562251857) }
Output for 7.3.3
array(2) { [0]=> int(4842823495328436708) [1]=> int(1638391853) }
Output for 7.3.2
array(2) { [0]=> int(-6509285485620217593) [1]=> int(1563201457) }
Output for 7.3.1
array(2) { [0]=> int(8033380838274600367) [1]=> int(-1664086830) }
Output for 7.3.0
array(2) { [0]=> int(-8696929572398616541) [1]=> int(-1165179582) }
Output for 7.2.34
array(2) { [0]=> int(-7633486383131493983) [1]=> int(268485039) }
Output for 7.2.33
array(2) { [0]=> int(2855810429636296525) [1]=> int(1833217747) }
Output for 7.2.32
array(2) { [0]=> int(4681445009779358964) [1]=> int(90548794) }
Output for 7.2.31
array(2) { [0]=> int(4169765648581175564) [1]=> int(1147026698) }
Output for 7.2.30
array(2) { [0]=> int(-2713400904647179364) [1]=> int(-761666961) }
Output for 7.2.29
array(2) { [0]=> int(-105979872739588981) [1]=> int(1490983644) }
Output for 7.2.28
array(2) { [0]=> int(8516196427855082987) [1]=> int(1136586742) }
Output for 7.2.27
array(2) { [0]=> int(8106691755387303311) [1]=> int(1007683145) }
Output for 7.2.26
array(2) { [0]=> int(-1072033071604402733) [1]=> int(-888926610) }
Output for 7.2.25
array(2) { [0]=> int(-2318968783568021234) [1]=> int(-893239762) }
Output for 7.2.24
array(2) { [0]=> int(-8440143134037294277) [1]=> int(643585695) }
Output for 7.2.23
array(2) { [0]=> int(-5303290594018025848) [1]=> int(-454895468) }
Output for 7.2.22
array(2) { [0]=> int(3996806182362155949) [1]=> int(-932823226) }
Output for 7.2.21
array(2) { [0]=> int(5752756464163129387) [1]=> int(-2076809820) }
Output for 7.2.20
array(2) { [0]=> int(-7633165216850106424) [1]=> int(-2020930129) }
Output for 7.2.19
array(2) { [0]=> int(-3433075839276236705) [1]=> int(-80397423) }
Output for 7.2.18
array(2) { [0]=> int(729673091676862330) [1]=> int(90491867) }
Output for 7.2.17
array(2) { [0]=> int(-75693953745396889) [1]=> int(684212585) }
Output for 7.2.16
array(2) { [0]=> int(1493124875047724210) [1]=> int(-1786406884) }
Output for 7.2.15
array(2) { [0]=> int(8521351540027787646) [1]=> int(-848261751) }
Output for 7.2.14
array(2) { [0]=> int(-1822599208228519462) [1]=> int(1642777745) }
Output for 7.2.13
array(2) { [0]=> int(-5035298102790585372) [1]=> int(-751307259) }
Output for 7.2.12
array(2) { [0]=> int(-5424220149852815310) [1]=> int(476231470) }
Output for 7.2.11
array(2) { [0]=> int(650488032911894201) [1]=> int(-1856109503) }
Output for 7.2.10
array(2) { [0]=> int(-3139437872599935666) [1]=> int(1346390962) }
Output for 7.2.9
array(2) { [0]=> int(-798445493370402358) [1]=> int(-489123177) }
Output for 7.2.8
array(2) { [0]=> int(-1836947133814804928) [1]=> int(-1743728826) }
Output for 7.2.7
array(2) { [0]=> int(2915605293977145656) [1]=> int(719985792) }
Output for 7.2.6
array(2) { [0]=> int(-4547905827900205779) [1]=> int(801194800) }
Output for 7.2.5
array(2) { [0]=> int(6834190901688107544) [1]=> int(894050729) }
Output for 7.2.4
array(2) { [0]=> int(2628591087108675589) [1]=> int(-1950006524) }
Output for 7.2.3
array(2) { [0]=> int(5996611255392901257) [1]=> int(540088503) }
Output for 7.2.2
array(2) { [0]=> int(-7986875592320372921) [1]=> int(-680535888) }
Output for 7.2.1
array(2) { [0]=> int(-3362720699376802709) [1]=> int(1936527045) }
Output for 7.2.0
array(2) { [0]=> int(-6589595813538531843) [1]=> int(-579600167) }
Output for 7.1.33
array(2) { [0]=> int(-3489288574917514636) [1]=> int(191811655) }
Output for 7.1.32
array(2) { [0]=> int(2118422045330093602) [1]=> int(-1468659508) }
Output for 7.1.31
array(2) { [0]=> int(8275244786480212923) [1]=> int(-565487171) }
Output for 7.1.30
array(2) { [0]=> int(-6995669771688113076) [1]=> int(-213509648) }
Output for 7.1.29
array(2) { [0]=> int(-3655487249663347026) [1]=> int(-360155897) }
Output for 7.1.28
array(2) { [0]=> int(-4138568000903355671) [1]=> int(-1693390714) }
Output for 7.1.27
array(2) { [0]=> int(7170949806640210066) [1]=> int(-831801530) }
Output for 7.1.26
array(2) { [0]=> int(-344624448064526070) [1]=> int(122296782) }
Output for 7.1.25
array(2) { [0]=> int(6266335735566978492) [1]=> int(-1887290201) }
Output for 7.1.24
array(2) { [0]=> int(-9035540969277282997) [1]=> int(-237163939) }
Output for 7.1.23
array(2) { [0]=> int(6743942903156159714) [1]=> int(-1451321234) }
Output for 7.1.22
array(2) { [0]=> int(8185774134859387778) [1]=> int(-242916530) }
Output for 7.1.21
array(2) { [0]=> int(-1191504638134862029) [1]=> int(-1056728851) }
Output for 7.1.20
array(2) { [0]=> int(1680520909939330808) [1]=> int(926448060) }
Output for 7.1.19
array(2) { [0]=> int(-9060106679102291934) [1]=> int(204976304) }
Output for 7.1.18
array(2) { [0]=> int(5094273136060841776) [1]=> int(-413282062) }
Output for 7.1.17
array(2) { [0]=> int(-1053787304760847138) [1]=> int(765456690) }
Output for 7.1.16
array(2) { [0]=> int(1842107363690907785) [1]=> int(1991908592) }
Output for 7.1.15
array(2) { [0]=> int(5743276883236774024) [1]=> int(852888755) }
Output for 7.1.14
array(2) { [0]=> int(-6845662790506353441) [1]=> int(1842142008) }
Output for 7.1.13
array(2) { [0]=> int(-6900802037687912939) [1]=> int(-1954862456) }
Output for 7.1.12
array(2) { [0]=> int(576594839105432730) [1]=> int(-1611333478) }
Output for 7.1.11
array(2) { [0]=> int(7982833351511505059) [1]=> int(-1748635505) }
Output for 7.1.10
array(2) { [0]=> int(301368014906267948) [1]=> int(-781652084) }
Output for 7.1.9
array(2) { [0]=> int(-7534171488249596038) [1]=> int(-1535283276) }
Output for 7.1.8
array(2) { [0]=> int(-3993248280969081506) [1]=> int(185580419) }
Output for 7.1.7
array(2) { [0]=> int(-8439281293744884646) [1]=> int(-102019812) }
Output for 7.1.6
array(2) { [0]=> int(3365067298749856379) [1]=> int(-832342194) }
Output for 7.1.5
array(2) { [0]=> int(6044299503360604269) [1]=> int(-1273853199) }
Output for 7.1.4
array(2) { [0]=> int(2753887190242755880) [1]=> int(-1212752495) }
Output for 7.1.3
array(2) { [0]=> int(-3558090573085878791) [1]=> int(-557833540) }
Output for 7.1.2
array(2) { [0]=> int(-7806049750231359697) [1]=> int(-1377192565) }
Output for 7.1.1
array(2) { [0]=> int(-5907858787830255354) [1]=> int(-1697328622) }
Output for 7.1.0
array(2) { [0]=> int(2721276848769375081) [1]=> int(-1854293613) }
Output for 7.0.33
array(2) { [0]=> int(6102277754932645031) [1]=> int(-697687158) }
Output for 7.0.32
array(2) { [0]=> int(7170583148977570527) [1]=> int(878919660) }
Output for 7.0.31
array(2) { [0]=> int(5703844804317274255) [1]=> int(-1754218382) }
Output for 7.0.30
array(2) { [0]=> int(2784821004160867852) [1]=> int(-1924796063) }
Output for 7.0.29
array(2) { [0]=> int(-7524523401446727610) [1]=> int(-434230992) }
Output for 7.0.28
array(2) { [0]=> int(1293588169648442704) [1]=> int(-466477491) }
Output for 7.0.27
array(2) { [0]=> int(6645620183429703015) [1]=> int(349093296) }
Output for 7.0.26
array(2) { [0]=> int(8593495606822265175) [1]=> int(-379101027) }
Output for 7.0.25
array(2) { [0]=> int(3555293253525294681) [1]=> int(1519845816) }
Output for 7.0.24
array(2) { [0]=> int(-3895904995152710177) [1]=> int(-1870970066) }
Output for 7.0.23
array(2) { [0]=> int(4317541553704305352) [1]=> int(-445717883) }
Output for 7.0.22
array(2) { [0]=> int(-1808170387808769970) [1]=> int(926528989) }
Output for 7.0.21
array(2) { [0]=> int(8037331799731765837) [1]=> int(2135282349) }
Output for 7.0.20
array(2) { [0]=> int(1641131336180372819) [1]=> int(-294054390) }
Output for 7.0.19
array(2) { [0]=> int(5596954557909431373) [1]=> int(1452887287) }
Output for 7.0.18
array(2) { [0]=> int(450458428915195002) [1]=> int(1886467882) }
Output for 7.0.17
array(2) { [0]=> int(-92661800588405496) [1]=> int(-2019619559) }
Output for 7.0.16
array(2) { [0]=> int(-4591065913818214461) [1]=> int(713808228) }
Output for 7.0.15
array(2) { [0]=> int(1935528017027282826) [1]=> int(2107205944) }
Output for 7.0.14
array(2) { [0]=> int(5399987134962076898) [1]=> int(-2123349913) }
Output for 7.0.13
array(2) { [0]=> int(-6174492070099303753) [1]=> int(-491676871) }
Output for 7.0.12
array(2) { [0]=> int(5468780680163748134) [1]=> int(369716021) }
Output for 7.0.11
array(2) { [0]=> int(-5966309390761674266) [1]=> int(-1502811296) }
Output for 7.0.10
array(2) { [0]=> int(-5487066733292482141) [1]=> int(-1905289413) }
Output for 7.0.9
array(2) { [0]=> int(2326635180895315697) [1]=> int(-1202639741) }
Output for 7.0.8
array(2) { [0]=> int(3935650461596604699) [1]=> int(-575237978) }
Output for 7.0.7
array(2) { [0]=> int(8733284737272525050) [1]=> int(1542659594) }
Output for 7.0.6
array(2) { [0]=> int(4283403384344316311) [1]=> int(1577513172) }
Output for 7.0.5
array(2) { [0]=> int(-882280595732656875) [1]=> int(-265131210) }
Output for 7.0.4
array(2) { [0]=> int(-339795985801927650) [1]=> int(-590408270) }
Output for 7.0.3
array(2) { [0]=> int(-5578800822454772904) [1]=> int(524040767) }
Output for 7.0.2
array(2) { [0]=> int(1384120518103621047) [1]=> int(745197729) }
Output for 7.0.1
array(2) { [0]=> int(-1512084064788132931) [1]=> int(-442992893) }
Output for 7.0.0
array(2) { [0]=> int(483424202873550210) [1]=> int(2044663873) }
Output for 5.5.0 - 5.5.38, 5.6.0 - 5.6.40
Fatal error: Uncaught exception 'Exception' with message 'There is no suitable CSPRNG installed on your system' in /in/VJGCb:264 Stack trace: #0 {main} thrown in /in/VJGCb on line 264
Process exited with code 255.
Output for 5.4.45
array(2) { [0]=> int(-3481191641493578122) [1]=> int(-1510815719) }
Output for 5.4.44
array(2) { [0]=> int(3004885645989647544) [1]=> int(-1271797397) }
Output for 5.4.43
array(2) { [0]=> int(-760421944506465120) [1]=> int(-1868137477) }
Output for 5.4.42
array(2) { [0]=> int(-819834826301778368) [1]=> int(1451856496) }
Output for 5.4.41
array(2) { [0]=> int(-8690238769812387735) [1]=> int(-11935145) }
Output for 5.4.40
array(2) { [0]=> int(5024480962939964107) [1]=> int(-695336215) }
Output for 5.4.39
array(2) { [0]=> int(-950772130979609538) [1]=> int(-643408339) }
Output for 5.4.38
array(2) { [0]=> int(3652859266559350881) [1]=> int(-1031571445) }
Output for 5.4.37
array(2) { [0]=> int(-6690670545532045312) [1]=> int(-713324077) }
Output for 5.4.36
array(2) { [0]=> int(6139602466725935966) [1]=> int(-250396901) }
Output for 5.4.35
array(2) { [0]=> int(5261236544671234491) [1]=> int(286926393) }
Output for 5.4.34
array(2) { [0]=> int(8528483486159202200) [1]=> int(526884551) }
Output for 5.4.33
array(2) { [0]=> int(4254560812192583211) [1]=> int(-249814714) }
Output for 5.4.32
array(2) { [0]=> int(795987532173605838) [1]=> int(1140118847) }
Output for 5.4.31
array(2) { [0]=> int(-5002720566180165261) [1]=> int(1751931298) }
Output for 5.4.30
array(2) { [0]=> int(7284380917175126009) [1]=> int(1231987614) }
Output for 5.4.29
array(2) { [0]=> int(-6178635660214223329) [1]=> int(1995898080) }
Output for 5.4.28
array(2) { [0]=> int(-9054413827433947867) [1]=> int(-1353317045) }
Output for 5.4.27
array(2) { [0]=> int(8073577524833548942) [1]=> int(544503729) }
Output for 5.4.26
array(2) { [0]=> int(8563420970421938985) [1]=> int(346544735) }
Output for 5.4.25
array(2) { [0]=> int(2462520734199878392) [1]=> int(1318896403) }
Output for 5.4.24
array(2) { [0]=> int(1584520342623122656) [1]=> int(-541777063) }
Output for 5.4.23
array(2) { [0]=> int(-6078981626434126709) [1]=> int(1785758948) }
Output for 5.4.22
array(2) { [0]=> int(-6780809490992623818) [1]=> int(1410358554) }
Output for 5.4.21
array(2) { [0]=> int(485828694975014526) [1]=> int(128701824) }
Output for 5.4.20
array(2) { [0]=> int(6299859629108494327) [1]=> int(-1619964032) }
Output for 5.4.19
array(2) { [0]=> int(-776985954170122065) [1]=> int(-121713820) }
Output for 5.4.18
array(2) { [0]=> int(6248079900633721584) [1]=> int(-336059119) }
Output for 5.4.17
array(2) { [0]=> int(7989739672301112395) [1]=> int(-1738775117) }
Output for 5.4.16
array(2) { [0]=> int(3627372665974986140) [1]=> int(-1478667177) }
Output for 5.4.15
array(2) { [0]=> int(2117172606331804256) [1]=> int(-1715955424) }
Output for 5.4.14
array(2) { [0]=> int(-6482512321039046332) [1]=> int(2026233159) }
Output for 5.4.13
array(2) { [0]=> int(528596127117951868) [1]=> int(-594093667) }
Output for 5.4.12
array(2) { [0]=> int(4242600471207327526) [1]=> int(1843148978) }
Output for 5.4.11
array(2) { [0]=> int(4485867516094750266) [1]=> int(-774477124) }
Output for 5.4.10
array(2) { [0]=> int(-2130004917008728534) [1]=> int(1443772633) }
Output for 5.4.9
array(2) { [0]=> int(9180095388633958144) [1]=> int(-1689278670) }
Output for 5.4.8
array(2) { [0]=> int(609272198685867691) [1]=> int(-1790710421) }
Output for 5.4.7
array(2) { [0]=> int(3146274484750190365) [1]=> int(1601349522) }
Output for 5.4.6
array(2) { [0]=> int(-7033876837411717296) [1]=> int(-2027699455) }
Output for 5.4.5
array(2) { [0]=> int(3735317545420238364) [1]=> int(-669819990) }
Output for 5.4.4
array(2) { [0]=> int(-4928249844790751565) [1]=> int(-1090761303) }
Output for 5.4.3
array(2) { [0]=> int(-5301131464956155999) [1]=> int(1693611907) }
Output for 5.4.2
array(2) { [0]=> int(-3416283526559432387) [1]=> int(-177790457) }
Output for 5.4.1
array(2) { [0]=> int(4055898477087481940) [1]=> int(-141033426) }
Output for 5.4.0
array(2) { [0]=> int(6200387204964107425) [1]=> int(-1213722239) }

preferences:
285.16 ms | 401 KiB | 363 Q