1
0
mirror of https://github.com/php/php-src.git synced 2026-04-23 16:08:35 +02:00
Files
archived-php-src/ext/random/tests/02_engine/mt19937_value.phpt
T
Tim Düsterhus 2d6a883b3a Unify structure for ext/random's engine tests (#9321)
* Remove user_xoshiro128plusplus.phpt

This test does not exercise any of the code paths of the random extension and
thus is no value-add.

* Unify structure for ext/random's engine tests
2022-08-23 23:55:11 +02:00

19 lines
309 B
PHP

--TEST--
Random: Engine: Mt19937: For a reference seed a fixed reference value must be generated
--FILE--
<?php
use Random\Engine\Mt19937;
$engine = new Mt19937(1234);
for ($i = 0; $i < 10_000; $i++) {
$engine->generate();
}
var_dump(bin2hex($engine->generate()));
?>
--EXPECT--
string(8) "60fe95d9"