summaryrefslogtreecommitdiff
path: root/src/tests/harden_rand/harden_mt_rand_range.phpt
blob: 0d5a5bf10ea27a83eb45fdce189968731c0dccf5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--TEST--
Harden mt_rand range
--SKIPIF--
<?php if (!extension_loaded("snuffleupagus")) print "skip"; ?>
--INI--
sp.configuration_file={PWD}/config/harden_rand.ini
--FILE--
<?php 
for ($i=0; $i <=100; $i++) {
  if (mt_rand(0,1) > 1) {
    echo "Failed\n";
  }
}

?>
--EXPECT--