mirror of
https://github.com/php/php-src.git
synced 2026-04-23 16:08:35 +02:00
2d6a883b3a
* 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
19 lines
309 B
PHP
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"
|