1
0
mirror of https://github.com/php/php-src.git synced 2026-04-22 07:28:09 +02:00
Files
archived-php-src/ext/standard/tests/random/random_int.phpt
T
SammyK dd2692621d Add tests for CSPRNG, fix C99 comments
Also replace one return; with RETURN_FALSE; for consistency.
2015-05-09 22:29:26 +02:00

19 lines
258 B
PHP

--TEST--
Test normal operation of random_int()
--FILE--
<?php
//-=-=-=-
var_dump(is_int(random_int(10, 100)));
$x = random_int(10, 100);
var_dump($x >= 10 && $x <= 100);
var_dump(random_int(-1000, -1) < 0);
?>
--EXPECT--
bool(true)
bool(true)
bool(true)