gmp_random_bits(1);
gmp_random_bits(1024);
-// 2 seconds to make sure the numbers stay in range
+// 0.5 seconds to make sure the numbers stay in range
$start = microtime(true);
$limit = (2 ** 30) - 1;
while (1) {
}
}
- if (microtime(true) - $start > 2) {
+ if (microtime(true) - $start > 0.5) {
break;
}
}
gmp_random_range($zero, $plusTen);
gmp_random_range($minusTen, $plusTen);
-// 2 seconds to make sure the numbers stay in range
+// 0.5 seconds to make sure the numbers stay in range
$start = microtime(true);
while (1) {
for ($i = 0; $i < 5000; $i++) {
}
}
- if (microtime(true) - $start > 2) {
+ if (microtime(true) - $start > 0.5) {
break;
}
}